![](/img/trans.png)
[英]Python pip command returning 'Command “python setup.py egg_info” failed with error code1'
[英]Pip Installation Error - Command python setup.py egg_info failed with error code 1
我剛剛在Windows 7(32位)機器上安裝了Python 2.7.5 。
嘗試通過Windows控制台安裝Scrapy模塊時,出現以下錯誤:
Command python setup.py egg_info failed with error code 1 in c:\users\compaq\app
data\local\temp\pip_build_COMPAQ\pyOpenSSL
Storing debug log for failure in C:\Users\COMPAQ\pip\pip.log
我已經閱讀了其他主題,建議重新安裝或更新安裝工具。 我已經嘗試過此操作(存在最新的安裝工具),但仍然存在刮擦安裝錯誤。
以下是完整的安裝腳本和失敗信息:
C:\Windows\system32>pip install scrapy
Downloading/unpacking scrapy
Running setup.py (path:c:\users\compaq\appdata\local\temp\pip_build_COMPAQ\scr
apy\setup.py) egg_info for package scrapy
no previously-included directories found matching 'docs\build'
Downloading/unpacking Twisted>=10.0.0 (from scrapy)
Downloading/unpacking w3lib>=1.2 (from scrapy)
Downloading w3lib-1.5.tar.gz
Running setup.py (path:c:\users\compaq\appdata\local\temp\pip_build_COMPAQ\w3l
ib\setup.py) egg_info for package w3lib
Downloading/unpacking queuelib (from scrapy)
Downloading queuelib-1.1.1.tar.gz
Running setup.py (path:c:\users\compaq\appdata\local\temp\pip_build_COMPAQ\que
uelib\setup.py) egg_info for package queuelib
Downloading/unpacking lxml (from scrapy)
Running setup.py (path:c:\users\compaq\appdata\local\temp\pip_build_COMPAQ\lxm
l\setup.py) egg_info for package lxml
Building lxml version 3.3.0.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.
** make sure the development packages of libxml2 and libxslt are installed *
*
Using build configuration of libxslt
C:\HACK\Python\lib\distutils\dist.py:267: UserWarning: Unknown distribution
option: 'bugtrack_url'
warnings.warn(msg)
warning: no previously-included files found matching '*.py'
Downloading/unpacking pyOpenSSL (from scrapy)
Running setup.py (path:c:\users\compaq\appdata\local\temp\pip_build_COMPAQ\pyO
penSSL\setup.py) egg_info for package pyOpenSSL
error: Only found improper OpenSSL directories: ['C:\\RUBY\\RailsInstaller\\
Git']
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\pyOpenSSL.egg-info
writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt
writing pip-egg-info\pyOpenSSL.egg-info\PKG-INFO
writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt
writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
error: Only found improper OpenSSL directories: ['C:\\RUBY\\RailsInstaller\\Git'
]
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\compaq\app
data\local\temp\pip_build_COMPAQ\pyOpenSSL
Storing debug log for failure in C:\Users\COMPAQ\pip\pip.log
pip
嘗試從源代碼構建軟件包。 因此,您將需要庫和VS2008
編譯器的開發標頭,而這些標頭的設置都非常麻煩。
從以下位置下載失敗軟件包的預構建二進制文件更加容易: http : //www.lfd.uci.edu/~gohlke/pythonlibs/
然后重試安裝scrapy
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.