在Mac上更改默认的python版本-安装Biopython [英] Changing the default python version on Mac - Installing Biopython

查看:156
本文介绍了在Mac上更改默认的python版本-安装Biopython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Mac随python 2.7一起安装为默认python版本.但是,许多软件包和软件不再支持此版本.我搜索了几个在线论坛,以了解如何在Mac上更改默认的python版本.但是,它们似乎都不起作用.我还安装了最新版本的python,如果输入:

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

python --version

它将版本返回为python 3.8.但是,如果我尝试安装像Biopython这样的软件包,则会收到这样的错误-

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

使用缓存的biopython-1.77.tar.gz(16.8 MB)收集biopython

Collecting biopython Using cached biopython-1.77.tar.gz (16.8 MB)

错误:命令错误,退出状态为1:

ERROR: Command errored out with exit status 1:

Biopython需要Python 3.6或更高版本.检测到Python 2.7

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.

谢谢.

推荐答案

可能,您只需要更改Python符号链接即可.

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

这篇关于在Mac上更改默认的python版本-安装Biopython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆