当前位置:   article > 正文

pip intall pywin32出现 error: subprocess-exited-with-error 错误的解决办法

subprocess-exited-with-error

问题描述:

安装pywin32时候报错:

pip install pypiwin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

  1. (venv) LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~$ pip install pypiwin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
  2. Looking in indexes: http://pypi.douban.com/simple/
  3. Collecting pypiwin32
  4. Downloading http://pypi.doubanio.com/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl (1.7 kB)
  5. Downloading http://pypi.doubanio.com/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip (4.8 MB)
  6. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 4.3 MB/s eta 0:00:00
  7. Preparing metadata (setup.py) ... error
  8. error: subprocess-exited-with-error
  9. × python setup.py egg_info did not run successfully.
  10. exit code: 1
  11. ╰─> [7 lines of output]
  12. Traceback (most recent call last):
  13. File "<string>", line 2, in <module>
  14. File "<pip-setuptools-caller>", line 34, in <module>
  15. File "/tmp/pip-install-vkb76949/pypiwin32_6b404ccc21a4415b9d41d119c3fba9c7/setup.py", line 121
  16. print "Building pywin32", pywin32_version
  17. ^
  18. SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
  19. [end of output]
  20. note: This error originates from a subprocess, and is likely not a problem with pip.
  21. error: metadata-generation-failed
  22. × Encountered error while generating package metadata.
  23. ╰─> See above for output.
  24. note: This is an issue with the package mentioned above, not pip.
  25. hint: See above for details.

有朋友说更新一下setuptools就可以了。

pip install --upgrade setuptools
https://blog.csdn.net/Jackfled/article/details/127046255

方法来自:pip intall 出现 error: subprocess-exited-with-error 错误的解决办法_Jackfled的博客-CSDN博客_subprocess-exit

可惜我测试了,没用。

报错: error: subprocess-exited-with-error_匿名用户2022的博客-CSDN博客 

还有另外一篇文章写了更多的尝试方法,仍旧没有解决。你可以看看哪些方法是否对你有用。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/861991
推荐阅读
相关标签
  

闽ICP备14008679号