Linked Questions
13 questions linked to/from Make python3 as my default python on Mac
507
votes
21
answers
984k
views
How to set Python's default version to 3.x on OS X? [duplicate]
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 ...
229
votes
23
answers
1.1m
views
How to change default Python version?
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 ...
298
votes
15
answers
713k
views
Setting PATH environment variable in macOS permanently
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 ...
3
votes
3
answers
13k
views
Installed Python 3.9.1 onto MAC OS but still says Python version is 2.7
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 ...
0
votes
0
answers
6k
views
How do I properly add 'script wheel' to python path?
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....
0
votes
0
answers
787
views
Python modules installed via Homebrew not importing in .command executable
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:...
0
votes
3
answers
388
views
Inconsistent python3 and pip3 on OSX
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
<...
1
vote
0
answers
384
views
pgmagick on Mac OS
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 --...
1
vote
1
answer
344
views
I have two python 3 versions on my Mac. How do I use the new version and/remove the old one?
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 ...
0
votes
0
answers
265
views
How do I change default python to 2.7 on Mac Catalina?
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, ...
3
votes
0
answers
149
views
Updating 'pip' after configuring 'pip' to point to Homebrew's pip3 causes errors
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 ...
0
votes
0
answers
143
views
How to use Python 3 in Sublime Text when it still runs Python 2.7
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": "^ ]*...
-1
votes
1
answer
128
views
Mac: Can installing Python wrong break other codes etc.?
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 ...