首页 > 解决方案 > 无法通过 pip 为 jupyter notebook 下载包

问题描述

我使用命令提示符下载 Jupyter notebook,由于某种原因,我无法导入某些库,如 numpy、pandas 或 bio。这是我尝试安装 bio 时收到的错误消息:

    ERROR: Command errored out with exit status 1:
     command: 'c:\users\bamfo\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bamfo\\AppData\\Local\\Temp\\pip-install-3d04zmt2\\biopython\\setup.py'"'"'; __file__='"'"'C:\\Users\\bamfo\\AppData\\Local\\Temp\\pip-install-3d04zmt2\\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\bamfo\AppData\Local\Temp\pip-record-7wph4w5a\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\bamfo\appdata\local\programs\python\python39\Include\biopython'
         cwd: C:\Users\bamfo\AppData\Local\Temp\pip-install-3d04zmt2\biopython\
    Complete output (698 lines):
    ----
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\bamfo\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bamfo\\AppData\\Local\\Temp\\pip-install-3d04zmt2\\biopython\\setup.py'"'"'; __file__='"'"'C:\\Users\\bamfo\\AppData\\Local\\Temp\\pip-install-3d04zmt2\\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\bamfo\AppData\Local\Temp\pip-record-7wph4w5a\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\bamfo\appdata\local\programs\python\python39\Include\biopython' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.1 is available.
You should consider upgrading via the 'c:\users\bamfo\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.

标签: pythonpipjupyter-notebookbiopython

解决方案


推荐阅读