Come installare Python 3 su macOS

Installare Python 3 non è la cosa più semplice da fare su macOS. Non è particolarmente difficile, ma devi sapere in quali condizioni stai lavorando. Speriamo di poter eliminare la maggior parte della confusione dal processo. Ecco come puoi installare Python 3 su macOS.

Requisiti

This is for macOS Catalina. macOS comes pre-installed with Python but on Catalina, this is version 2.7 which has reached the end of its life. This will create a few hiccups in the process but let’s start with the basics.

First, install Xcode on your Mac. You can get it from the Mac App Store. Once installed, make sure that the app is running. Launch it once to ensure there isn’t a problem.

Next, open Terminal and run the following command. This will install Command Line tools for Xcode. You need these to install Homebrew. The process is short and simple. You only need to follow the on-screen prompts.

xcode-select --install

Finally, run the following command in Terminal to install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python 3

Now that you’ve installed the basic apps you need, you can install Python 3. Open a new Terminal window, and run the following command.

brew install python3

Come installare Python 3 su macOS

The installation won’t take too long but you may need to authenticate with your user password during the installation process. Once it’s complete, you will see a message telling you that Python 3 was installed. Now you need to install pip.

Come installare Python 3 su macOS

pip is a package manager for Python. When you install Python scripts or apps, you often see ‘pip’ at the start of the install command. To install pip, run the following command in Terminal.

brew postinstall python3

Come installare Python 3 su macOS

This command may, or may not work. If you see the ‘setup.py –no-user-cfg install ‘ message in Terminal, this means that pip did not install. If that’s the case, simply run this command instead and it will install pip.

sudo easy_install pip

Come installare Python 3 su macOS

Python 2 vs Python 3

Python 2 is still on your system even though you’ve installed Python 3. In order to send commands to Python 3, you will need to enter python3 in the terminal. If you enter python, the command will be sent to Python 2.

Assuming you’ve now installed Python 3, you can check it by running the following command in Terminal.

python3 --version

Come installare Python 3 su macOS

Notice that we entered python3 and not just python. If you enter python –version, you will get a different version number i.e., the Python 2 version. At this point, we don’t recommend removing Python 2 from macOS since there are still a few kinks that Python 3 and pip have on the Mac platform. It is always a good idea to have the old version to fall back on.

Leave a Comment

Cataloga, ordina e organizza la tua collezione di film su Mac

Cataloga, ordina e organizza la tua collezione di film su Mac

Gli appassionati di media con enormi collezioni di film apprezzeranno sicuramente l'organizzazione e le funzionalità offerte da DVD Hunter. Consente di catalogare, ordinare e

DiskEject – Forza lespulsione del disco CD o DVD su Mac

DiskEject – Forza lespulsione del disco CD o DVD su Mac

È un problema comune nei Macbook e nei computer desktop Mac quando un disco CD o DVD non viene espulso correttamente. L'unica soluzione per risolvere questo problema è riavviare il computer.

Come aggiungere più immagini a un singolo PDF su macOS

Come aggiungere più immagini a un singolo PDF su macOS

Come aggiungere più immagini a un singolo PDF su macOS

Migliora la registrazione dello schermo sui giochi per Mac con questi consigli degli esperti

Migliora la registrazione dello schermo sui giochi per Mac con questi consigli degli esperti

Abbiamo i migliori metodi di registrazione dello schermo per Mac che gli utenti dovrebbero conoscere, tra cui app e strumenti nativi e le migliori opzioni di software di registrazione di terze parti.

Sincronizza la musica con Android, Windows Phone e Blackberry [Mac]

Sincronizza la musica con Android, Windows Phone e Blackberry [Mac]

Instinctiv Music Player, come suggerisce il nome, è un intuitivo lettore multimediale tipo jukebox per la gestione di vari file multimediali sul tuo Mac. Ha un'interfaccia molto pulita

Come usare lo schermo diviso su Mac: multitasking come un professionista

Come usare lo schermo diviso su Mac: multitasking come un professionista

Scopri come usare lo schermo diviso sul tuo Mac. Segui questi semplici passaggi per abilitare Split View e potenziare il multitasking.

Memory Diag e Battery Diag sono due semplici app di monitoraggio del sistema [Mac]

Memory Diag e Battery Diag sono due semplici app di monitoraggio del sistema [Mac]

Le app di manutenzione hanno un seguito notevole. Alcuni appassionati sono motivati ​​dal monitoraggio dei componenti, mentre altri dalla pulizia tramite strumenti come Onyx.

Come fare uno screenshot su Mac: guida completa

Come fare uno screenshot su Mac: guida completa

Scopri come acquisire screenshot su un Mac con la nostra guida dettagliata. Scopri le migliori scorciatoie, suggerimenti e strumenti per catturare lo schermo.

Come specificare le impostazioni dellequalizzatore per ogni brano in iTunes

Come specificare le impostazioni dellequalizzatore per ogni brano in iTunes

I lettori musicali, quelli buoni, hanno equalizzatori integrati. Normalmente, l'equalizzatore è un'impostazione unica per tutti. È possibile selezionare qualsiasi tipo di suono.

ReadCube: cerca file PDF su Google Scholar e organizza file PDF locali

ReadCube: cerca file PDF su Google Scholar e organizza file PDF locali

Ottieni di più dai tuoi PDF con ReadCube. Accedi alle riviste universitarie, effettua ricerche nei database accademici e arricchisci la tua ricerca.