安装torch失败 2020-12-05

错误:


PS D:\Bringing-Old-Photos-Back-to-Life-master> pip install torch -i https://pypi.douban.com/simple

Looking in indexes: https://pypi.douban.com/simple

Collecting torch

  Downloading https://pypi.doubanio.com/packages/f8/02/880b468bd382dc79896eaecbeb8ce95e9c4b99a24902874a2cef0b562cea/torch-0.1.2.post2.tar.gz (128 kB)

    |████████████████████████████████| 128 kB 6.8 MB/s

Requirement already satisfied: pyyaml in d:\python\python38\lib\site-packages (from torch) (5.3.1)

Building wheels for collected packages: torch

  Building wheel for torch (setup.py) ... error

  ERROR: Command errored out with exit status 1:

  command: 'd:\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\wgy\\AppData\\Local\\Temp\\pip-install-ka8hl0kf\\torch_aa4d618336794de9ac94591e9e350e71\\setup.py'"'"'; __file__='"'"'C:\\Users\\wgy\\AppData\\Local\\Temp\\pip-install-ka8hl0kf\\torch_aa4d618336794de9ac94591e9e350e71\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\wgy\AppData\Local\Temp\pip-wheel-0fq1ocxu'

      cwd: C:\Users\wgy\AppData\Local\Temp\pip-install-ka8hl0kf\torch_aa4d618336794de9ac94591e9e350e71\

  Complete output (30 lines):

  running bdist_wheel

  running build

  running build_deps

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "C:\Users\wgy\AppData\Local\Temp\pip-install-ka8hl0kf\torch_aa4d618336794de9ac94591e9e350e71\setup.py"
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值