如何解决在windows中安装setuptools python时出错 [英] How to solve error installing setuptools python in windows
本文介绍了如何解决在windows中安装setuptools python时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮助我解决我挣扎了几个小时的问题,我正在尝试使用
can someone help me with an issue I am struggling for a couple of hours, I am trying to install "flask-jwt-extended" using
pip install flask-jwt-extended
但我收到以下错误
ERROR: Command errored out with exit status 1:
command: 'c:\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-fg_ccsgv\\flask-jwt-extended\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-fg_ccsgv\\flask-jwt-extended\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\User\AppData\Local\Temp\pip-install-fg_ccsgv\flask-jwt-extended\
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
它说我必须安装 setuptools,但我已经安装了.
It says I have to install setuptools, but I already have installed it.
已满足要求:c:\lib\site-packages 中的 setuptools (41.2.0)
有人可以帮我解决这个问题吗?不知道是什么
Can someone help me out with that? I don't know what can it be
谢谢!
推荐答案
pip install gitpython
pip install os-win
pip install wheel
Linux 使用 sudo
,Windows 使用 以管理员身份运行 cmd
.
Use sudo
for Linux or run cmd as Administrator
for Windows.
这为我解决了这个问题.
This solved the issue for me.
这篇关于如何解决在windows中安装setuptools python时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文