Changing the default python version on Mac - Installing Biopython

不羁岁月 提交于 2021-01-05 08:51:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!