python3.7生物ython,如何学习python3并仍然使用biothyton

2024-05-15 17:21:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我对python和biopython非常陌生,目前正在使用mac。我有pythonv2.7和v3.7,我想学习python3。Biopython只能在v2.7上运行。安装pythonv3.4和其他2个版本,这样我就可以学习python3和使用biopython了吗?或者删除python3.7并添加3.4?即使我安装了python3.4,如果biotython是事先安装的,它还能工作吗?非常困惑的生物学家。在


Tags: 版本macpython3biopython生物学家陌生biotython
2条回答

来自biopython installation document

Biopython is designed to work with Python 2.5 to 2.7 inclusive. Python 2.7 is the final 2.x series release, and this would be our recommended version (assuming all other Python libraries you plan to use support it).

Upgrading bug-fix releases (for example. 2.6.1 to 2.6.2) is incredibly easy and won’t require any re-installation of libraries.

Upgrading between versions (e.g. 2.6 to 2.7) is more time consuming since you need to re-install all libraries you have added to python.

As of Biopython 1.62 we officially support Python 3, specifically Python 3.3. Python 3.0, 3.1 and 3.2 will not be supported.

同样来自Biopython website

Python 2.7, 3.4, 3.5, or 3.6 or PyPy, including the Python development header files like python.h

所以biopython和他们的文件不一致。在

我认为你最好的选择是下载python2或python3的最新版本,看看它是否能正常工作。在

首先,看看这个页面:https://biopython.org/wiki/Download 您不必担心biopython绑定到特定版本的python上,您可以将其与v2.7或v3.4/v3.5/v3.6一起使用。您也可以在系统上安装多个版本,但我建议您集中精力深入研究其中一个版本。就我个人而言,我在python3.x(目前是3.6)上工作了几年,但我知道很多人坚持v2.7。在

同样拥有生物信息学的背景,我可以在旅程开始时强烈推荐您参加一门课程,例如: https://www.coursera.org/specializations/python youtube上还有很多免费的教程,你可以通过搜索“python教程”或“python入门”来轻松找到一个适合你需要的教程。在

让你自己熟悉这门语言,看看数据结构、数据库和数据可视化等基础知识。还可以查看一些“python备忘单”——它们可以帮助您了解该语言的基本概念。 一切顺利,继续编码!在

相关问题 更多 >