不知道如何在 Windows 上安装此 python 模块?
Can't figure out how to install this python module on Windows?
我一直在尝试在 Windows 7 上安装一个名为 BioPython 的模块,但每次我尝试进行 pip 安装时,我都会得到这个:
Command "c:\users\mqian\appdata\local\programs\python\python37-32\python.exe -u
-c "import setuptools, tokenize;__file__='C:\Users\mqian\AppData\Local\Temp
\pip-install-e0z5nqc6\biopython\setup.py';f=getattr(tokenize, 'open', open)(_
_file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file
__, 'exec'))" install --record C:\Users\mqian\AppData\Local\Temp\pip-record-fsxh
7if9\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in C:\Users\mqian\AppData\Local\Temp\pip-install-e0z5nqc6\biopyt
hon\
一些谷歌搜索和 Whosebuging 没有得到任何有用的结果。我查看了一些关于错误代码 1 的 SO 帖子,但无济于事。有人有什么建议吗?
所以我查看了我的堆栈跟踪,似乎我错过了它给我的所有混乱输出中的重要一行。
这两个 link 有点帮助。
基本上我错过了这个工具(我还不能完全确定它的用途)。根据第二个link如果出现以下任何一个:Failed building wheel for [your module]
或Failed to build [your module]
或Microsoft Visual C++ 14.0 is required
或Unable to find vcvarsall.bat
,那么你可能需要安装visual c++。
无论如何,安装它解决了我的问题。干杯。
您可以尝试安装 Anaconda 环境,然后执行 conda install -c anaconda biopython
我一直在尝试在 Windows 7 上安装一个名为 BioPython 的模块,但每次我尝试进行 pip 安装时,我都会得到这个:
Command "c:\users\mqian\appdata\local\programs\python\python37-32\python.exe -u
-c "import setuptools, tokenize;__file__='C:\Users\mqian\AppData\Local\Temp
\pip-install-e0z5nqc6\biopython\setup.py';f=getattr(tokenize, 'open', open)(_
_file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file
__, 'exec'))" install --record C:\Users\mqian\AppData\Local\Temp\pip-record-fsxh
7if9\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in C:\Users\mqian\AppData\Local\Temp\pip-install-e0z5nqc6\biopyt
hon\
一些谷歌搜索和 Whosebuging 没有得到任何有用的结果。我查看了一些关于错误代码 1 的 SO 帖子,但无济于事。有人有什么建议吗?
所以我查看了我的堆栈跟踪,似乎我错过了它给我的所有混乱输出中的重要一行。
这两个 link 有点帮助。
基本上我错过了这个工具(我还不能完全确定它的用途)。根据第二个link如果出现以下任何一个:Failed building wheel for [your module]
或Failed to build [your module]
或Microsoft Visual C++ 14.0 is required
或Unable to find vcvarsall.bat
,那么你可能需要安装visual c++。
无论如何,安装它解决了我的问题。干杯。
您可以尝试安装 Anaconda 环境,然后执行 conda install -c anaconda biopython