提问者:小点点

未找到Pytorch


C:\Users\Toothless>pip install torchvision --user
Collecting torchvision
Using cached https://files.pythonhosted.org/packages/b7/ff /091b4503d5f228bd1120db784e2c071617211b965a8a78018e75750c7199/torchvision-0.3.0-cp37-cp37m-win_amd64.whl
Requirement already satisfied: six in c:\users\toothless\appdata\local\programs\python\python37\lib\site-packages (from torchvision) (1.12.0)
Collecting pillow>=4.1.1 (from torchvision)
Downloading https://files.pythonhosted.org/packages/ae/96/6f83deebfcd20a5d4ad35e4e989814a16559d8715741457e670aae1a5a09/Pillow-6.1.0-cp37-cp37m-win_amd64.whl (2.0MB)
 |████████████████████████████████| 2.0MB 27kB/s
Requirement already satisfied: numpy in c:\users\toothless\appdata\local\programs\python\python37\lib\site-packages (from torchvision) (1.17.0)
 Collecting torch>=1.1.0 (from torchvision)
 ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
 ERROR: No matching distribution found for torch>=1.1.0 (from torchvision)

 C:\Users\Toothless>pip3 install torchvision
 Collecting torchvision
 Using cached https://files.pythonhosted.org/packages/b7/ff/091b4503d5f228bd1120db784e2c071617211b965a8a78018e75750c7199/torchvision-0.3.0-cp37-cp37m-win_amd64.whl
 Requirement already satisfied: six in c:\users\toothless\appdata\local\programs\python\python37\lib\site-packages (from torchvision) (1.12.0)
 Collecting torch>=1.1.0 (from torchvision)
 ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
 ERROR: No matching distribution found for torch>=1.1.0 (from torchvision)

我一直在关注这个问题,但是conda”没有列在我的环境变量中。

编辑:当我尝试pip安装torch torchvision时--使用此命令,它会给出一个错误-错误:torchvision 0.3。0具有要求

编辑:我也尝试过pip安装torchvision,但显示错误-

C:\Users\Toothless>pip install torchvision
Collecting torchvision
Using cached https://files.pythonhosted.org/packages/b7/ff/091b4503d5f228bd1120db784e2c071617211b965a8a78018e75750c7199/torchvision-0.3.0-cp37-cp37m-win_amd64.whl
Collecting torch>=1.1.0 (from torchvision)
ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.1.0 (from torchvision)

我现在应该做什么来制作一个可行的Pytork?


共3个答案

匿名用户

检查:

pip install torchvision --no-deps

这可能是因为依赖关系。

匿名用户

最后,我安装了我想要的pytorch

pip3 install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp37-cp37m-win_amd64.whl

对于torchVision:

pip3 install https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp37-cp37m-win_amd64.whl

我在PyTorch网站上找到了这段代码。

匿名用户

torchvision是pytorch的补充库,其中包括计算机视觉特定功能。你需要先安装torch。尝试安装pip torch torchvision--user