亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法 pip 安裝手電筒

無法 pip 安裝手電筒

哆啦的時光機 2023-06-06 14:40:37
我正在嘗試pip install stanza并收到此消息:ERROR:?No?matching?distribution?found?for?torch>=1.3.0?(from?stanza)然后我運行pip install torch并得到以下內容?ERROR: Command errored out with exit status 1:? ?command: 'c:\python\python37\python.exe' ... ...? ...? ...? Traceback (most recent call last):? ? ... ...? ? File "C:\Users\borka\AppData\Local\Temp\pip-install-10i7vgad\torch\setup.py", line 51, in run? ? ? from tools.nnwrap import generate_wrappers as generate_nn_wrappers? ModuleNotFoundError: No module named 'tools.nnwrap'? ----------------------------------------? ERROR: Failed building wheel for torch? ERROR: Command errored out with exit status 1:? ?command: 'c:\python\python37\python.exe' ... ...? ? ? ?cwd: C:\Users\borka\AppData\Local\Temp\pip-install-10i7vgad\torch? Complete output (2 lines):? running clean? error: [Errno 2] No such file or directory: '.gitignore'? ----------------------------------------? ERROR: Failed cleaning build dir for torchDEPRECATION: Could not build wheels for torch which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.? ? ERROR: Command errored out with exit status 1:? ? ?command: 'c:\python\python37\python.exe' ... ...? ? Traceback (most recent call last):? ? ... ...? ? ? File "C:\Users\borka\AppData\Local\Temp\pip-install-10i7vgad\torch\setup.py", line 51, in run? ? ? ? from tools.nnwrap import generate_wrappers as generate_nn_wrappers? ? ModuleNotFoundError: No module named 'tools.nnwrap'? ? ----------------------------------------ERROR: Command errored out with exit status 1: 'c:\python\python37\python.exe' ... ... Check the logs for full command output.
查看完整描述

2 回答

?
鳳凰求蠱

TA貢獻1825條經驗 獲得超4個贊

我可以看到你有一臺 Windows 機器,所以從這個官方 pytorch網站,你可以構建最適合你的要求和系統的命令,試試這個

pip?install?torch===1.6.0?torchvision===0.7.0?-f?https://download.pytorch.org/whl/torch_stable.html

在這里,所有的torch包都位于 Windows、MacOS 和 Linux 中


查看完整回答
反對 回復 2023-06-06
?
三國紛爭

TA貢獻1804條經驗 獲得超7個贊

我遇到了同樣的錯誤,并意識到 Pytorch 尚不支持 Python 3.9。我使用 Python 3.7 創建了另一個虛擬環境并且安裝成功。



查看完整回答
反對 回復 2023-06-06
  • 2 回答
  • 0 關注
  • 127 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號