qq_53126640 2022-09-12 22:26 采纳率: 0%
浏览 68

pytorch安装不上┭┮﹏┭┮求指导

安装pytorch时发生的问题

C:\Users\哈>pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Requirement already satisfied: torch in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (1.12.1+cu113)
Requirement already satisfied: torchvision in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (0.13.1+cu113)
Requirement already satisfied: torchaudio in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (0.12.1+cu113)
Requirement already satisfied: typing-extensions in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from torch) (4.3.0)
Requirement already satisfied: numpy in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from torchvision) (1.23.3)
Requirement already satisfied: requests in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from torchvision) (2.28.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from torchvision) (9.2.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests->torchvision) (2022.6.15.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests->torchvision) (1.26.12)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests->torchvision) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests->torchvision) (3.3)

没报错也不知道咋回事儿
我的解答思路和尝试过的方法 我在CSDN上查了一下使用了这个代码

C:\Users\哈 哈 哈>pip install --target=c:\users\哈哈哈\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages request
运行结果是:ERROR: Can not combine '--user' and '--target'

我想要达到的结果

在jupyter里输入import torch时不出错

  • 写回答

3条回答 默认 最新

  • ·星辰大海 2022-09-12 22:52
    关注

    我的建议是先保证你的路径中没有中文,再来解决问题

    评论

报告相同问题?

问题事件

  • 创建了问题 9月12日

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境