Linked Questions

507 votes
21 answers
984k views

I'm running Mountain Lion and the basic default Python version is 2.7. I downloaded Python 3.3 and want to set it as default. Currently: $ python version 2.7.5 $ python3.3 version 3.3 How do ...
Marcus's user avatar
  • 9,502
229 votes
23 answers
1.1m views

I have installed Python 3.2 on my Mac. After I run /Applications/Python 3.2/Update Shell Profile.command, it's confusing that when I type python -V in Terminal, it says Python 2.6.1 which is not what ...
Zhu Shengqi's user avatar
  • 3,822
298 votes
15 answers
713k views

I have read several answers on how to set environment variables on macOS permanently. First, I tried this, How to permanently set $PATH on Linux/Unix but I had an error message saying no such file and ...
patti_jane's user avatar
  • 4,021
3 votes
3 answers
13k views

I installed Python 3.9.1 onto my MacBook however when I use the command python --version it says its python 2.7. Here's what going on in my terminal for reference: $ python -V Python 2.7.16 $ brew ...
daisy227's user avatar
0 votes
0 answers
6k views

I just installed Python 3.7 from python.org. I followed this StackOverflow post to change my default Python to Python 3. From there I ran the Update Shell Profile.command and Install Certificates....
Kevin T.'s user avatar
  • 768
0 votes
0 answers
787 views

New Python programmer here! 😊 Following the answer, I tried to make an executable .py file on MacOS following these steps: Installed Homebrew via MacOS Terminal ($ /usr/bin/ruby-e "$(curl -fsSL https:...
EthanAlvaree's user avatar
0 votes
3 answers
388 views

I cannot figure out how to get the correct version of pip3 on my Mac as the default. I installed and use Python3 via brew: ❯ which python3 /usr/local/bin/python3 ❯ ls -l /usr/local/bin/python3 <...
zype's user avatar
  • 69
1 vote
0 answers
384 views

I try to install pgmagick on my MacOS Mojave (10.14.6). On the https://pypi.org/project/pgmagick/ there is a guide for installing on MacOS: 1) When I try the first method ($brew install pgmagick --...
Alina's user avatar
  • 11
1 vote
1 answer
344 views

I have Python 3.6.5 and Python 3.7.4 installed. python --version gives me 3.6, while python3 --version gives me 3.7. Running code in PyCharm indicates that it is still using 3.6. How do I update it ...
EnterPassword's user avatar
0 votes
0 answers
265 views

Python 2.7 is no longer available on Mac Catalina, but I need it to be my default python to get Cocos Creator to build iOS apps correctly. I tried installing Python, and setting the alias as follows, ...
Dan Tang's user avatar
  • 1,343
3 votes
0 answers
149 views

After installing Python 3 using Homebrew and putting the Homebrew aliases (e.g. pip -> pip3) on my path export PATH=/usr/local/opt/python/libexec/bin:$PATH and then updating pip with pip3 install -U ...
orome's user avatar
  • 49.2k
0 votes
0 answers
143 views

I'm trying to run Python in Sublime but I get a syntax error because it's running Python 2.7. I tried to create a new build with { "cmd": ["/usr/bin/python3", "-u", "$file"], "file_regex": "^ ]*...
J. Doe's user avatar
  • 269
-1 votes
1 answer
128 views

Can installing Python 3 wrong break other codes, applications etc. in Mac; or can I just install how I want? Cause I code in Python 3 and my Mac's built-in is 2.7 (By "how i want", I mean ...
flashy's user avatar
  • 574