python - 如何在 Windows 10 上安装支持 CUDA 的 pytorch 1.2.0?
问题描述
我正在尝试在带有 Python 3.9 的 Windows 10 上安装支持 CUDA 的 pytorch 1.2.0,但它一直出错。
例如,我做pip install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch
并得到:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'pytorch'
有任何想法吗?谢谢你。
解决方案
我的答案:
pip install wheel
然后使用此处的版本链接: https ://www.python.org/downloads/release/python-370/
例如,如果您想要 Python 3.7 Windows 的 1.1.0,请执行以下操作:
pip install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp37-cp37m-win_amd64.whl
谢谢你们
推荐阅读
- google-sheets - 如何启用 Google 表格 API?
- ios - 添加 Double 和 String 以显示在 UILabel 上
- mysql - 在 Mojave 上使用 MySQL2 安装 Rails 失败
- excel - 如何仅通过在 Excel 中选择起始单元格来记录宏以复制和粘贴表格?
- php - 在 SQL 中计算年龄
- java - 通量映射中的重载?
- c# - 如何对齐 DataTemplateSelector 选择的 DataTemplate 中的文本?
- oauth-2.0 - Python 请求登录以登录亚马逊以获取亚马逊广告 API 的访问令牌
- javascript - 在 vue.js 中获取当前/父组件/视图的路径/路由/命名空间
- powershell - 安装nuget包时如何执行自定义脚本?