問題描述:
安裝pywin32時候報(bào)錯:
pip install pypiwin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
(venv) LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~$ pip install pypiwin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting pypiwin32
Downloading http://pypi.doubanio.com/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl (1.7 kB)
Downloading http://pypi.doubanio.com/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 4.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-vkb76949/pypiwin32_6b404ccc21a4415b9d41d119c3fba9c7/setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
有朋友說更新一下setuptools就可以了。
pip install --upgrade setuptools
https://blog.csdn.net/Jackfled/article/details/127046255
方法來自:pip intall 出現(xiàn) error: subprocess-exited-with-error 錯誤的解決辦法_Jackfled的博客-CSDN博客_subprocess-exit
可惜我測試了,沒用。
報(bào)錯: error: subprocess-exited-with-error_匿名用戶2022的博客-CSDN博客?文章來源:http://www.zghlxwxcb.cn/news/detail-519410.html
還有另外一篇文章寫了更多的嘗試方法,仍舊沒有解決。你可以看看哪些方法是否對你有用。文章來源地址http://www.zghlxwxcb.cn/news/detail-519410.html
到了這里,關(guān)于pip intall pywin32出現(xiàn) error: subprocess-exited-with-error 錯誤的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!