我正在try 用Windows安装Pytorch,我正在使用官方网站的命令

pip3 install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html

如果我 Select Windows、Cuda 10.0和Python 3.7,这就是命令

ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.2.0

那么为什么会发生这种情况呢?

推荐答案

问题最可能的原因是python的32位安装,而torch库依赖于64位版本.我也有同样的问题.

只需从命令行启动python并观察

C:\Users\marci>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32

我的安装现在显示64位.如果显示32位,则安装64位python.我用了这个链接:Official python 64-bit Windows installer

Python-3.x相关问答推荐

如何翻转以列形式给出的日期间隔并提取多个重叠时段内每小时的音量?

如何创建一个polars gramme,给出列表中的列名,

检测点坐标 - opencv findContours()

查找值始终为零的行 pandas

通过 Pandas 通过用户定义函数重命名数据框列

Sunburst 折线图可视化

将 pandas Timestamp() 转换为 datetime.datetime() 以支持 peewee DateTimeField()

如何融化具有自定义名称的Pandas

非拉丁字符的Python正则表达式不起作用

机器学习实验笔记本的工作区 url

BeautifulSoup 和 pd.read_html - 如何将链接保存到最终数据框中的单独列中?

如何查找 tensorflow.python.data.ops.dataset_ops.MapDataset 对象的大小或形状,make_csv_dataset 的输出

列表中的重复数字与列表理解

在 jupyter notebook 的单元格中使用 sudo

如何使我的课程在 Python 中非常可打印?

如何模拟 Django 模型对象(及其方法)?

为什么 virtualenv 会有效地禁用 Python 3 制表符补全?

在没有时间的python中创建日期

如何修复:cx_Oracle.DatabaseError:DPI-1047:找不到 64 位 Oracle 客户端库 - Python

注册 Celery 基于类的任务