不知道如何在Windows上安装这个python模块?

2024-10-04 05:32:36 发布

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

我一直在尝试在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\

一些google和stackoverflow并没有带来任何帮助。我看了一些关于错误代码1的帖子,但没有用。有人有什么建议吗?你知道吗


Tags: installpiplocalcodeopenrecordusersappdata
2条回答

您可以尝试安装Anaconda环境,然后执行conda install -c anaconda biopython

所以我看了一下我的堆栈跟踪,似乎在它给我的混乱的输出中遗漏了一行重要的内容。你知道吗

这两个链接有些帮助。你知道吗

Pip error: Microsoft Visual C++ 14.0 is required

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualst udio.com/visual-cpp-build-tools

基本上我缺少这个工具(我还不完全确定它的用途)。根据第二个链接,如果出现以下任何一个:Failed building wheel for [your module]Failed to build [your module]Microsoft Visual C++ 14.0 is requiredUnable to find vcvarsall.bat,那么您可能需要安装visualc++。你知道吗

不管怎样,安装它解决了我的问题。干杯。你知道吗

相关问题 更多 >