安装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时不出错