How to remove python3.5 and activate python3.9 (both seem to be installed and collide...)? #1294
Replies: 4 comments 7 replies
-
What's the output of |
Beta Was this translation helpful? Give feedback.
-
Hi carlocab, thanks for your help! When I type "echo $PATH" I get the following back: "/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" I guess this means that 3.5 is somehow still the "active version", even though I obviously also have 3.9.4 installed? If so, the question is how do I remove the old 3.5 and activate the 3.9 path instead? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for that very clever trick! However, given that I have python installed at "/usr/local/bin/python" and python3.9 installed at "/usr/local/bin/python3.9", can't I just somehow remove python3.5 from "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5" via Terminal and then use a symlink (or similar) command to direct youtube-dl (and svtplay-dl) to use python3.9 every time python3.x is required? |
Beta Was this translation helpful? Give feedback.
-
Thanks for feedback, it sounds like we're on to something here! :-) In my "/usr/local/bin/" folder I have the following alias files beginning with "py" (thus being python related I presume): pycrust Is this helpful in trying to figure out why my "echo $PATH" points to the python3.5 installation at "/Library/Frameworks/Python.framework/Versions/3.5/bin", or what can be done to change this to the python3.9 location instead? /Mark |
Beta Was this translation helpful? Give feedback.
-
Hi, I seem to have managed to get multiple installations of python in my Mac OS 10.14.6 folder hierarchy and would very much appreciate if someone could help me sort this out via brew/Terminal...
When I write "python --version" in Terminal I get back "Python 2.7.17"
When I write "python3 --version" I get back "Python 3.5.1"
When I write "python3.9 --version" I get back "Python 3.9.4"
When I write "which python" I get back "/usr/local/bin/python"
When I write "which python3" I get back "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3"
When I write "which python3.9" I get back "/usr/local/bin/python3.9"
When I write "brew upgrade python" I get back "python 3.9.4 already installed"
When I write "sudo pip install --upgrade python" I get back the following error message:
"DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
WARNING: The directory '/Users/mark/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag."
How do I completely remove python3.5 from my system and make sure that all necessary pointers are directed to the location where python3.9 now resides..?
Many thanks in advance for help in straightening this out! :-)
/Mark
Beta Was this translation helpful? Give feedback.
All reactions