Python pip安装失败,原因是

2024-05-14 03:35:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在尝试安装yajl>;=0.3.5包,得到以下错误。这种情况只适用于这个特定的包,而不是我当前使用的其他包。命令如下。在

                         pip install yajl>=0.3.5

Command "python setup.py egg_info" failed with error code 1 in C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-epamw9qh\yajl\

或者

我知道有一个类似的question问题,并尝试了上述问题中所有指定的解决方案。这是我的发现。在

1)我已经成功地安装了setuptools,升级了它们,还安装了ez\u安装程序。pip install yajl>=0.3.5即使在这之后也会出现与上面相同的错误。在

2)我已经下载了yajl>;=0.3.5的源代码,并尝试了以下命令。在

^{pr2}$

我得到的错误如下。在

Collecting yajl>=0.3.5

 Using cached yajl-0.3.5.tar.gz
  Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\ANURAG~1\AppData\Local\Temp\pycharm-packaging\yajl\setup.py",

line 64, in subprocess.call(['git', 'submodule', 'update',]) File "C:\Program Files\Python\lib\subprocess.py", line 560, in call with Popen(*popenargs, **kwargs) as p: File "C:\Program Files\Python\lib\subprocess.py", line 950, in init restore_signals, start_new_session) File "C:\Program Files\Python\lib\subprocess.py", line 1220, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified


Command "python setup.py egg_info" failed with error code 1 in C:\Users\ANURAG~1\AppData\Local\Temp\pycharm-packaging\yajl\

PS:我用的是Windows10。在


Tags: pipinpyinfoegg错误withsetup