【问题标题】:Can't figure out how to install this python module on Windows?不知道如何在 Windows 上安装这个 python 模块?
【发布时间】:2019-03-01 11:32:44
【问题描述】:

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

一些谷歌搜索和 StackOverflowing 并没有带来任何帮助。我查看了有关错误代码 1 的一些 SO 帖子,但无济于事。有人有什么建议吗?

【问题讨论】:

    标签: python windows python-module


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      所以我查看了我的堆栈跟踪,似乎我在它给我的所有混乱输出中错过了重要的一行。

      这两个链接有些帮助。

      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] or Failed to build [your module] or Microsoft Visual C++ 14.0 is required or Unable to find vcvarsall.bat,那么您可能需要安装visual c++。

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-01-23
        • 2011-07-28
        • 1970-01-01
        • 1970-01-01
        • 2016-09-22
        • 2016-11-30
        • 1970-01-01
        相关资源
        最近更新 更多