我问你安装报啥错,是不是折磨报的
[AppleScript] 纯文本查看 复制代码 Microsoft Windows [版本 10.0.17763.2237]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\17>pip install pytorch
Collecting pytorch
Downloading pytorch-1.0.2.tar.gz (689 bytes)
Building wheels for collected packages: pytorch
Building wheel for pytorch (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\17\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"'; __file__='"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\17\AppData\Local\Temp\pip-wheel-aq1mza01'
cwd: C:\Users\17\AppData\Local\Temp\pip-install-jo032l75\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\17\AppData\Local\Temp\pip-install-jo032l75\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\setup.py", line 15, in <module>
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
----------------------------------------
ERROR: Failed building wheel for pytorch
Running setup.py clean for pytorch
Failed to build pytorch
Installing collected packages: pytorch
Running setup.py install for pytorch ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\17\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"'; __file__='"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\17\AppData\Local\Temp\pip-record-euzp2div\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\17\AppData\Local\Programs\Python\Python39\Include\pytorch'
cwd: C:\Users\17\AppData\Local\Temp\pip-install-jo032l75\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\17\AppData\Local\Temp\pip-install-jo032l75\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\setup.py", line 11, in <module>
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\17\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"'; __file__='"'"'C:\\Users\\17\\AppData\\Local\\Temp\\pip-install-jo032l75\\pytorch_5ee76f2f5bf5432da511c6f84d7bc446\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\17\AppData\Local\Temp\pip-record-euzp2div\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\17\AppData\Local\Programs\Python\Python39\Include\pytorch' Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Users\17\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
C:\Users\17>
|