python - 无法通过 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.
解决方案
推荐阅读
- reactjs - Konva-React 旋转显示
- azure-devops - Azure DevOps:我想在更改父级日期时更改所有子级工作项的日期字段
- reactjs - 如何使用 React JS v16 和 webpack v3 加载 CDN 或外部供应商 javascript lib
- vue-formulate - Vue 使用 Tailwindcss 制定文件输入
- javascript - Mobile Hamburger Menu 2 div 关闭/打开菜单
- react-native - fireEvent.press 不工作(反应本机测试库)
- ios - Xamarin iOS 无法从 iCloud 获取文件
- reactjs - 如何在反应中删除从地图创建的特定项目?
- azure-devops - DBT(数据构建工具)- 在 Azure DevOps 中创建 CI/CD 管道
- flutter - Flutter 安全存储测试