问题
My Mac came installed with python 2.7 as the default python version. But, this version is no longer supported by many packages and software. I searched several online forums regarding how to change the default python version on mac. But, none of them seem to work. I also installed the latest version of python, and if I type:
python --version
It returns the version as python 3.8. But if I try to install packages like Biopython, I get an error like this -
defaulting to user installation because normal site-packages is not writeable
Collecting biopython Using cached biopython-1.77.tar.gz (16.8 MB)
ERROR: Command errored out with exit status 1:
Biopython requires Python 3.6 or later. Python 2.7 detected
I am really finding it difficult to install many packages required for my work. Any help or suggestions would be greatly appreciated.
Thank you.
回答1:
Probably, you just have to change your Python symbolic link.
Please check this, and you will get it: https://dev.to/malwarebo/how-to-set-python3-as-a-default-python-version-on-mac-4jjf
来源:https://stackoverflow.com/questions/65069019/changing-the-default-python-version-on-mac-installing-biopython