本文介绍了由于egg_info错误,无法通过pip安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我要安装哪个软件包,我都会收到以下错误:

 错误:无效命令'egg_info' 

----------------------------------------
清理...
命令python setup.py egg_info失败,错误代码1在c:\users\zorpix\appdata\local\temp\pip-build-Zorpix\virtualenv
存储完整的登录C:\Users\Zorpix\pip\pip.log

我看到,但答案是不为我工作我可以安装分发包,这是迄今为止我可以安装的唯一包,但是它不能解决问题,因为一旦我尝试安装另一个包,egg_info错误就会返回。我对此感到非常沮丧,因为我无法找到任何有用的东西。我还有django和pip和以前安装的所有东西,但是我不得不重新安装它,现在它不工作...任何帮助将不胜感激。



这是它存储的日志:

  ----------------- ------------------------------------------- 
C:\\ \\ Python27\Scripts\pip-script.py运行于07/26/13 11:30:42
下载/解压缩virtualenv

获取页面https://pypi.python。 org / simple / virtualenv /
搜索virtualenv版本的URL:
* https://pypi.python.org/simple/virtualenv/
分析页面https:// pypi中的链接.python.org / simple / virtualenv /
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.tar.gz#md5=36b766604542f2c34d8dffdb21ba14a9(来自https:// pypi.python.org/simple/virtualenv/),版本:1.3
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.2.tar.gz#md5 = e948af53ad41ca2718c4034484fcd694(from ht tps://pypi.python.org/simple/virtualenv/),版本:1.6.2
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.ta​​r .gz#md5 = dcc105e5a3907a9dcaa978f813a4f526(来自https://pypi.python.org/simple/virtualenv/),版本:1.7
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv /virtualenv-1.3.2-py2.4.egg#md5=6913c03f02167fe4ac32add76c3edeb7(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.9.tar.gz#md5=c49067cab242b5ff8c7b681a5a99533a(来自https:// pypi .python.org / simple / virtualenv /),版本:1.4.9
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.tar.gz#md5= 88c187a93a78c4c9bd54eef9ef0e0f03(来自https://pypi.python.org/simple/virtualenv/),版本:0.8
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9。 1-py2.4.egg#md5 = f595300f14597da25feabaececcf62a2(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.3.tar.gz#md5=73a69184e35f1e2c2f9016c889c4d26a(来自https:// pypi .python.org / simple / virtualenv /),版本:1.6.3
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.3.tar.gz# md5 = d635fb7de359ff603a1fc395933724d1(来自https://pypi.python.org/simple/virtualenv/),版本:0.8.3
找到链接https://pypi.python.org/packages/source/v/virtualenv/ virtualenv-1.8.3.tar.gz#md5 = d42ab84b1b38258f2a57365841186f71(来自https://pypi.python.org/simple/virtualenv/),版本:1.8.3
找到链接https://pypi.python。 org / packages / source / v / virtualenv / virtualenv-1.3.1.tar.gz#md5 = e70ed86cc3823f0b622e80e035b59297(来自https://pypi.python.org/simple/virtualenv/),版本:1.3.1
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.tar.gz#md5=a8c756de9661323b1f95311e79f8a5f3(从https://pypi.python.org/simple/vi rtualenv /),版本:1.5
跳过链接https://pypi.python.org/packages/2.6/v/virtualenv/virtualenv-1.3.4-py2.6.egg#md5=f5cf3d4dba3a224351fb5f90f59dae1a(来自https: //pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3-py2.4.egg#md5=ff872f8b8dcb3dc76d9c2793afc9b1a5(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.3-py2.4.egg#md5=fbcb29d72e35ee93d80738d46e69d350(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.4-py2.5.egg#md5=2fd8f371cc83c2a49009e5fe51fcd9c9(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.0.tar.gz#md5=fb86aabdfc2033612b936cf08ad811ec(来自https://pypi.python .org / simple / virtualenv /),版本:1.0
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.3-py2.5.egg#md5= 7592e9dd19388a037768840caac00255(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.1-py2.5.egg#md5=f042320f7301a77311b876ed55d2a635(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.tar.gz#md5=1a07359ff6e5dbfaefa6381516293b47(来自https:// pypi .python.org / simple / virtualenv /),版本:1.7.1
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.3-py2.4。 egg#md5 = 9cd8f513ba25e09be54ead5b1325ad3e(来自https://pypi.python.org/simple/virtualenv/);未知的档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.2-py2.5.egg#md5=0043570e1c16af8d3c9fa1e99bce012b(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.3.tar.gz#md5=28e2955aed4ffc4dc3df02dc632b5c42(来自https:// pypi .python.org / simple / virtualenv /),版本:1.3.3
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.1-py2.4。 egg#md5 = fa8831295f1073151876375c4567f5cd(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.1.tar.gz#md5=e06efff3c3dd5f88758dde29e108bfdd(来自https:// pypi .python.org / simple / virtualenv /),版本:1.7.1.1
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.tar.gz#md5= ef70dc53c648f4253335351c65b5740f(来自https://pypi.python.org/simple/virtualenv/),版本:1.4
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1 .tar.gz#md5 = fb62a93b054e877e6a6c92f7dcd0b6ae(来自https://pypi.python.org/simple/virtualenv/),版本:1.4rc1
找到链接https://pypi.python.org/packages/source/ v / virtualenv / virtualenv-0.8.4.tar.gz#md5 = 30f053782cc29363927b848263ae9158(来自https://pypi.python.org/simple/virtualenv/),版本:0.8.4
跳过链接https:// pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9.2-py2.4.egg#md5=319b534ed28e2d31b124b1a76f42fbc7(来自https://pypi.python.org/si mple /的virtualenv /);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.2-py2.5.egg#md5=7a4d37d0c3f83f917d7a6556f31bb31d(来自https: /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.2-py2.5.egg#md5=eedbc037902cd2010b055451641addcf(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.2.tar.gz#md5=a013d5a7d9aeddc16bee88604d6de636(从https:// pypi .python.org / simple / virtualenv /),版本:1.3.2
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.tar.gz#md5= 17a52f8801cbeb6805f4a4650dc89468(来自https://pypi.python.org/simple/virtualenv/),版本:0.9
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.0- py2.5.egg#md5 = e6881a6353543b0af8b116ed8ed2f6f6(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.2.tar.gz#md5=78b6e73600db0d5ed8c0e507f0f7d705(来自https:// pypi .python.org / simple / virtualenv /),版本:0.9.2
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.1-py2.5。 egg#md5 = ad5869374196f7d533a9b649adfe9014(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.8.tar.gz#md5=74ded4025a56e538c1c8df6b9825a8b8(来自https:// pypi .python.org / simple / virtualenv /),版本:1.4.8
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.1.tar.gz# md5 = d9abf1dc9dcaf603c60840c582414f66(来自https://pypi.python.org/simple/virtualenv/),版本:0.9.1
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/ virtualenv-1.3.4-py2.4.egg#md5 = bd62418a72b7e09a637ef368b7b0101b(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz#md5=d3c621dd9797789fef78442e336df63e(从https:// pypi .python.org / simple / virtualenv /),版本:1.4.5
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.tar.gz#md5= b1c585e0bbe4fca56bfa0b34aff87bd9(来自https://pypi.python.org/simple/virtualenv/),版本:1.6
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8。 2.tar.gz#md5 = 241f157e92dd9052b5a4b43efcef8035(来自https://pypi.python.org/simple/virtualenv/),版本:0.8.2
跳过链接https://pypi.python.org/packages/ 2.4 / v / virtualenv / virtualenv-1.3.1-py2.4.egg#md5 = 708cc5281dae7fdd8d996cdb55bef52d(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.2-py2.4.egg#md5=4a92b99c93026031b7298906bf126ccd(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.1.tar.gz#md5=6ab218532376c2a389ef4ea030ff96f2(来自https:// pypi .python.org / simple / virtualenv /),版本:1.4.1
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.3-py2.5。 egg#md5 = fae350c941cd9eadf5e9a407c37a2e03(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.tar.gz#md5=fdab30066a1d731ca6fe22a4c23b9e80(来自https://pypi.python .org / simple / virtualenv /),版本:1.8
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.4.tar.gz#md5=77d675df104b90fceec749150bd5014f(从https://pypi.python.org/simple/virtualenv/),版本:1.3.4
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4。 2.tar.gz#md5 = 7b1a10f0e84dd945c9b006ace1e1bb16(来自https://pypi.python.org/simple/virtualenv/),版本:1.4.2
跳过链接https://pypi.python.org/packages/ 2.4 / v / virtualenv / virtualenv-0.8.4-py2.4.egg#md5 = 6d2db4c08a9b8a7b59e1ab7731791381(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9-py2.4.egg#md5=12b34ae909f578910c293ecfe7c793e3(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.6.tar.gz#md5=f576969d591a054132fe8c9165c2b3c3(来自https:// pypi .python.org / simple / virtualenv /),版本:1.4.6
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.1.tar.gz# md5 = 5d7b4784f530bd8acf44b568776dbd3c(来自https://pypi.python.org/simple/virtualenv/),版本:0.8.1
找到链接https://pypi.python.org/packages/source/v/virtualenv/ virtualenv-1.4.3.tar.gz#md5 = 2b639cee32d15fd049a49561957afe4b(来自https://pypi.python.org/simple/virtualenv/),版本:1.4.3
跳过链接https://pypi.python。 org / packages / 2.5 / v / virtualenv / virtualenv-0.8.4-py2.5.egg#md5 = 40300b786dad2e8380ef785c4998f421(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.0-py2.4.egg#md5=6199b281bf6e7370d896520eb3a968f8(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.2.tar.gz#md5=7ad454e52f025cad631d03331ade4aaf(从https://pypi.python .org / simple / virtualenv /),版本:1.2
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.2-py2.4.egg#md5=53ab95a286cc0382e503306bb0df9d49(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz#md5=fbcefbd8520bb64bc24a560c6019a73c(来自https:// pypi .python.org / simple / virtualenv /),版本:1.5.2
跳过链接https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.1-py2.4.egg# md5 = d9b0de14426957e30b2aa7015451aa43(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.4.7-py2.5.egg#md5=e1bb0e1cbc4e2df64dfdde6b0867ef29(来自https:/ /pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz#md5=174ca075c6b1a42c685415692ec4ce2e(来自https:// pypi .python.org / simple / virtualenv /),版本:1.8.2
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.1.tar.gz# md5 = 1a475df2219457b6b4febb9fe595d915(来自https://pypi.python.org/simple/virtualenv/),版本:1.6.1
找到链接https://pypi.python.org/packages/source/v/virtualenv/ virtualenv-1.5.1.tar.gz#md5 = 3daa1f449d5d2ee03099484cecb1c2b7(来自https://pypi.python.org/simple/virtualenv/),版本:1.5.1
找到链接https://pypi.python。 org / packages / source / v / virtualenv / virtualenv-1.4.4.tar.gz#md5 = 94161ae1500cb3a8b003c0c394c9dbbd(来自https://pypi.python.org/simple/virtualenv/),版本:1.4.4
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.7.ta​​r.gz#md5=979a7adf8467df7df800a45debd2074f(从https://pypi.python.org/simple/ virtualenv /),版本:1.4.7
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.2.tar.gz#md5=b5d63b05373a4344ae099a68875aae78(来自https: //pypi.python.org/simple/virtualenv/),版本:1.7.2
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.4.tar .gz#md5 = 1c7e56a7f895b2e71558f96e365ee7a7(来自https://pypi.python.org/simple/virtualenv/),版本:1.8.4
找到链接https://pypi.python.org/packages/source/v /virtualenv/virtualenv-1.7.1.2.tar.gz#md5=3be8a014c27340f48b56465f9109d9fa(来自https://pypi.python.org/simple/virtualenv/),版本:1.7.1.2
找到链接https:// pypi .python.org / packages / source / v / virtualenv / virtualenv-1.9.tar.gz#md5 = e03b76752b8ce7eee67c6298414cac79(来自https://pypi.python.org/simple/virtualenv/),版本:1.9
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.1.tar.gz#md5=3aebe32859aa4512e1e679834c10f7bf(来自https://pypi.python.org/simple/ virtualenv /),版本:1.8.1
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.1-py2.5.egg#md5=573b8bd74a7b9b207b5eede8db386953(from https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.1.tar.gz#md5=8931b66dbb799120583dd107aab2fa89(来自https://pypi.python .org / simple / virtualenv /),版本:1.1
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3-py2.5.egg#md5=8102d251e3f1caf709722679a737f454(来自https://pypi.python.org/simple/virtualenv/);未知档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.1-py2.5.egg#md5=1db8cdd823739c79330a138327239551(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5(来自https:// pypi .python.org / simple / virtualenv /),version:1.6.4
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.2-py2.5。 egg#md5 = f2cd2b10b8be8b57e74cb1830fc0b504(来自https://pypi.python.org/simple/virtualenv/);未知的档案格式:.egg
跳过链接https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9-py2.5.egg#md5=7c8e85680f1ede0844a496513366d7a5(来自https:// pypi .python.org /简单/的virtualenv /);未知档案格式:.egg
找到链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.tar.gz#md5=9745c28256c70c76d36adb3767a00212(来自https://pypi.python .org / simple / virtualenv /),版本:1.10
发现链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz#md5=07e09df0adfca0b2d487e39a4bf2270a(来自https://pypi.python.org/simple/virtualenv/),版本:1.9.1
忽略链接https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1 .tar.gz#md5 = fb62a93b054e877e6a6c92f7dcd0b6ae(从https://pypi.python.org/simple/virtualenv/),版本1.4rc1是一个预发行版(使用--pre允许)。
使用版本1.10(最新版本:1.10,1.9.1,1.9,1.8.4,1.8.3,1.8.2,1.8.1,1.8,1.7.2,1.7.1.2,1.7.1.1, 1.7.1,1.7,1.6.4,1.6.3,1.6.2,1.6.1,1.6,1.5.2,1.5.1,1.5,1.4.9,1.4.8,1.4.7,1.4.6, 1.4.5,1.4.4,1.4.3,1.2.2,1.4,1,1.4,1.3.4,1.3.3,1.3.2,1.3,1,1.3,1.2,1.1,1.0,0.9.2, 0.9.1,0.9,0.8.4,0.8.3,0.8.2,0.8.1,0.8)
从URL下载https://pypi.python.org/packages/source/v/virtualenv/virtualenv -1.10.tar.gz#md5 = 9745c28256c70c76d36adb3767a00212(来自https://pypi.python.org/simple/virtualenv/)
运行setup.py egg_info for package virtualenv

C:\\ \\ Python27\lib\distutils\dist.py:267:UserWarning:未知的分发选项:'entry_points'

warnings.warn(msg)

C:\\ \\ Python27\lib\distutils\dist.py:267:UserWarning:未知的分发选项:'zip_safe'

warnings.warn(msg)

C:\\ \\Python27\lib\distutils\\ dist.py:267:UserWarning:未知分发选项:'test_suite'

warnings.warn(msg)

C:\Python27\lib\distutils\ dist.py:267:UserWarning:未知分发选项:'tests_require'

warnings.warn(msg)

用法:-c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

或:-c --help [cmd1 cmd2 ...]

或:-c --help-commands

或:-c cmd --help



错误:无效命令'egg_info'

从命令python设置完成输出。 py egg_info:

C:\Python27\lib\distutils\dist.py:267:UserWarning:未知分发选项:'entry_points'

warnings.warn (msg)

C:\Python27\lib\distutils\dist.py:267:UserWarning:未知分发选项:'zip_safe'

warnings.warn (msg)

C:\Python27\lib\distutils\\ \\ dist.py:267:UserWarning:未知的分发选项:'test_suite'

warnings.warn(msg)

C:\Python27\lib\distutils\\ \\ dist.py:267:UserWarning:未知的分发选项:'tests_require'

warnings.warn(msg)

用法:-c [global_opts] cmd1 [cmd1_opts] cmd2 [cmd2_opts] ...]

或:-c --help [cmd1 cmd2 ...]

或:-c --help-commands

或:-c cmd --help



错误:无效命令'egg_info'

------ ----------------------------------

清理...

删除临时目录c:\users\joey\appdata\local\temp\pip-build-Joey ...
命令python setup.py egg_info失败,出现错误代码1在c:\users\joey\appdata\local\temp\pip-build-Joey\virtualenv

异常信息:
追溯(最近的呼叫最后) :
文件C:\Python27\lib\site-pa ckages\pip\basecommand.py,第134行,主要
status = self.run(options,args)
文件C:\Python27\lib\site-packages \\ pip\commands\install.py,行236,运行
require_set.prepare_files(finder,force_root_egg_info = self.bundle,bundle = self.bundle)
文件C:\Python27 \lib\site-packages\pip\req.py,第1124行,prepare_files
req_to_install.run_egg_info()
文件C:\Python27\lib\site- package \pip\req.py,第257行,在run_egg_info
command_desc ='python setup.py egg_info')
文件C:\Python27\lib\site-packages\\ \\ pip\util.py,第670行,在call_subprocess
%(command_desc,proc.returncode,cwd))
InstallationError:命令python setup.py egg_info失败,错误代码1在c: \\ users\joey\appdata\local\temp\pip-build-Joey\virtualenv

EDIT :
不知道我做了什么,但现在我收到这个错误:

  ImportError:没有名为setuptools.command 

的模块--------------------------------- -------
清理...
命令python setup.py egg_info失败,错误代码为1在c:\users\joey\appdata\local\temp\\ \\ pip-build-Joey\Django
存储完整的登录C:\Users\Joey\pip\pip.log

我缺少什么这个setuptools?

解决方案

找到了什么错了。我从来没有安装python的设置工具,所以它缺少一些重要的文件,像蛋的。



如果你发现自己有我的问题,请下载,然后在powershell或命令提示符下,导航到ez_setup的目录并执行该命令,这将运行该文件你:

  $ [sudo] python ez_setup.py 

如果您仍然需要安装点,请运行:

  $ [sudo] easy_install pip 

easy_install是setuptools的一部分,因此无法安装点击



然后,pip将使用以下命令成功安装django:

  $ [sudo] pip install django 

希望我救了别人我给自己的头痛! p>

〜Zorpix


No matter which package I'm trying to install, I get this error:

error: invalid command 'egg_info'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\zorpix\appdata\local\temp\pip-build-Zorpix\virtualenv
Storing complete log in C:\Users\Zorpix\pip\pip.log

I saw this question, but the answer doesn't work for me. I can install the distribute package, which so far is the only package I can install, but it doesn't fix the problem, as the egg_info error returns as soon as I try to install another package. I'm getting pretty frustrated with this, as I can't find anything helpful anywhere. I've also had django and pip and everything installed before, but I had to reinstall it all, and now it's not working... Any help would be appreciated.

Here is the log it says it stored:

------------------------------------------------------------
C:\Python27\Scripts\pip-script.py run on 07/26/13 11:30:42
Downloading/unpacking virtualenv

  Getting page https://pypi.python.org/simple/virtualenv/
  URLs to search for versions for virtualenv:
  * https://pypi.python.org/simple/virtualenv/
  Analyzing links from page https://pypi.python.org/simple/virtualenv/
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.tar.gz#md5=36b766604542f2c34d8dffdb21ba14a9 (from https://pypi.python.org/simple/virtualenv/), version: 1.3
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.2.tar.gz#md5=e948af53ad41ca2718c4034484fcd694 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.2
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.tar.gz#md5=dcc105e5a3907a9dcaa978f813a4f526 (from https://pypi.python.org/simple/virtualenv/), version: 1.7
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.2-py2.4.egg#md5=6913c03f02167fe4ac32add76c3edeb7 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.9.tar.gz#md5=c49067cab242b5ff8c7b681a5a99533a (from https://pypi.python.org/simple/virtualenv/), version: 1.4.9
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.tar.gz#md5=88c187a93a78c4c9bd54eef9ef0e0f03 (from https://pypi.python.org/simple/virtualenv/), version: 0.8
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9.1-py2.4.egg#md5=f595300f14597da25feabaececcf62a2 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.3.tar.gz#md5=73a69184e35f1e2c2f9016c889c4d26a (from https://pypi.python.org/simple/virtualenv/), version: 1.6.3
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.3.tar.gz#md5=d635fb7de359ff603a1fc395933724d1 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.3
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.3.tar.gz#md5=d42ab84b1b38258f2a57365841186f71 (from https://pypi.python.org/simple/virtualenv/), version: 1.8.3
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.1.tar.gz#md5=e70ed86cc3823f0b622e80e035b59297 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.tar.gz#md5=a8c756de9661323b1f95311e79f8a5f3 (from https://pypi.python.org/simple/virtualenv/), version: 1.5
    Skipping link https://pypi.python.org/packages/2.6/v/virtualenv/virtualenv-1.3.4-py2.6.egg#md5=f5cf3d4dba3a224351fb5f90f59dae1a (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3-py2.4.egg#md5=ff872f8b8dcb3dc76d9c2793afc9b1a5 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.3-py2.4.egg#md5=fbcb29d72e35ee93d80738d46e69d350 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.4-py2.5.egg#md5=2fd8f371cc83c2a49009e5fe51fcd9c9 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.0.tar.gz#md5=fb86aabdfc2033612b936cf08ad811ec (from https://pypi.python.org/simple/virtualenv/), version: 1.0
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.3-py2.5.egg#md5=7592e9dd19388a037768840caac00255 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.1-py2.5.egg#md5=f042320f7301a77311b876ed55d2a635 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.tar.gz#md5=1a07359ff6e5dbfaefa6381516293b47 (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.3-py2.4.egg#md5=9cd8f513ba25e09be54ead5b1325ad3e (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.2-py2.5.egg#md5=0043570e1c16af8d3c9fa1e99bce012b (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.3.tar.gz#md5=28e2955aed4ffc4dc3df02dc632b5c42 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.3
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.1-py2.4.egg#md5=fa8831295f1073151876375c4567f5cd (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.1.tar.gz#md5=e06efff3c3dd5f88758dde29e108bfdd (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1.1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.tar.gz#md5=ef70dc53c648f4253335351c65b5740f (from https://pypi.python.org/simple/virtualenv/), version: 1.4
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1.tar.gz#md5=fb62a93b054e877e6a6c92f7dcd0b6ae (from https://pypi.python.org/simple/virtualenv/), version: 1.4rc1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.4.tar.gz#md5=30f053782cc29363927b848263ae9158 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.4
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9.2-py2.4.egg#md5=319b534ed28e2d31b124b1a76f42fbc7 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.2-py2.5.egg#md5=7a4d37d0c3f83f917d7a6556f31bb31d (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.2-py2.5.egg#md5=eedbc037902cd2010b055451641addcf (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.2.tar.gz#md5=a013d5a7d9aeddc16bee88604d6de636 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.2
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.tar.gz#md5=17a52f8801cbeb6805f4a4650dc89468 (from https://pypi.python.org/simple/virtualenv/), version: 0.9
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.0-py2.5.egg#md5=e6881a6353543b0af8b116ed8ed2f6f6 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.2.tar.gz#md5=78b6e73600db0d5ed8c0e507f0f7d705 (from https://pypi.python.org/simple/virtualenv/), version: 0.9.2
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.1-py2.5.egg#md5=ad5869374196f7d533a9b649adfe9014 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.8.tar.gz#md5=74ded4025a56e538c1c8df6b9825a8b8 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.8
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.1.tar.gz#md5=d9abf1dc9dcaf603c60840c582414f66 (from https://pypi.python.org/simple/virtualenv/), version: 0.9.1
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.4-py2.4.egg#md5=bd62418a72b7e09a637ef368b7b0101b (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz#md5=d3c621dd9797789fef78442e336df63e (from https://pypi.python.org/simple/virtualenv/), version: 1.4.5
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.tar.gz#md5=b1c585e0bbe4fca56bfa0b34aff87bd9 (from https://pypi.python.org/simple/virtualenv/), version: 1.6
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.2.tar.gz#md5=241f157e92dd9052b5a4b43efcef8035 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.2
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.1-py2.4.egg#md5=708cc5281dae7fdd8d996cdb55bef52d (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.2-py2.4.egg#md5=4a92b99c93026031b7298906bf126ccd (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.1.tar.gz#md5=6ab218532376c2a389ef4ea030ff96f2 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.1
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.3-py2.5.egg#md5=fae350c941cd9eadf5e9a407c37a2e03 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.tar.gz#md5=fdab30066a1d731ca6fe22a4c23b9e80 (from https://pypi.python.org/simple/virtualenv/), version: 1.8
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.4.tar.gz#md5=77d675df104b90fceec749150bd5014f (from https://pypi.python.org/simple/virtualenv/), version: 1.3.4
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.2.tar.gz#md5=7b1a10f0e84dd945c9b006ace1e1bb16 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.2
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.4-py2.4.egg#md5=6d2db4c08a9b8a7b59e1ab7731791381 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9-py2.4.egg#md5=12b34ae909f578910c293ecfe7c793e3 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.6.tar.gz#md5=f576969d591a054132fe8c9165c2b3c3 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.6
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.1.tar.gz#md5=5d7b4784f530bd8acf44b568776dbd3c (from https://pypi.python.org/simple/virtualenv/), version: 0.8.1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.3.tar.gz#md5=2b639cee32d15fd049a49561957afe4b (from https://pypi.python.org/simple/virtualenv/), version: 1.4.3
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.4-py2.5.egg#md5=40300b786dad2e8380ef785c4998f421 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.0-py2.4.egg#md5=6199b281bf6e7370d896520eb3a968f8 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.2.tar.gz#md5=7ad454e52f025cad631d03331ade4aaf (from https://pypi.python.org/simple/virtualenv/), version: 1.2
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.2-py2.4.egg#md5=53ab95a286cc0382e503306bb0df9d49 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz#md5=fbcefbd8520bb64bc24a560c6019a73c (from https://pypi.python.org/simple/virtualenv/), version: 1.5.2
    Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.1-py2.4.egg#md5=d9b0de14426957e30b2aa7015451aa43 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.4.7-py2.5.egg#md5=e1bb0e1cbc4e2df64dfdde6b0867ef29 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz#md5=174ca075c6b1a42c685415692ec4ce2e (from https://pypi.python.org/simple/virtualenv/), version: 1.8.2
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.1.tar.gz#md5=1a475df2219457b6b4febb9fe595d915 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.1.tar.gz#md5=3daa1f449d5d2ee03099484cecb1c2b7 (from https://pypi.python.org/simple/virtualenv/), version: 1.5.1
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.4.tar.gz#md5=94161ae1500cb3a8b003c0c394c9dbbd (from https://pypi.python.org/simple/virtualenv/), version: 1.4.4
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.7.tar.gz#md5=979a7adf8467df7df800a45debd2074f (from https://pypi.python.org/simple/virtualenv/), version: 1.4.7
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.2.tar.gz#md5=b5d63b05373a4344ae099a68875aae78 (from https://pypi.python.org/simple/virtualenv/), version: 1.7.2
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.4.tar.gz#md5=1c7e56a7f895b2e71558f96e365ee7a7 (from https://pypi.python.org/simple/virtualenv/), version: 1.8.4
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.2.tar.gz#md5=3be8a014c27340f48b56465f9109d9fa (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1.2
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz#md5=e03b76752b8ce7eee67c6298414cac79 (from https://pypi.python.org/simple/virtualenv/), version: 1.9
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.1.tar.gz#md5=3aebe32859aa4512e1e679834c10f7bf (from https://pypi.python.org/simple/virtualenv/), version: 1.8.1
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.1-py2.5.egg#md5=573b8bd74a7b9b207b5eede8db386953 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.1.tar.gz#md5=8931b66dbb799120583dd107aab2fa89 (from https://pypi.python.org/simple/virtualenv/), version: 1.1
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3-py2.5.egg#md5=8102d251e3f1caf709722679a737f454 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.1-py2.5.egg#md5=1db8cdd823739c79330a138327239551 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.4
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.2-py2.5.egg#md5=f2cd2b10b8be8b57e74cb1830fc0b504 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9-py2.5.egg#md5=7c8e85680f1ede0844a496513366d7a5 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.tar.gz#md5=9745c28256c70c76d36adb3767a00212 (from https://pypi.python.org/simple/virtualenv/), version: 1.10
    Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz#md5=07e09df0adfca0b2d487e39a4bf2270a (from https://pypi.python.org/simple/virtualenv/), version: 1.9.1
  Ignoring link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1.tar.gz#md5=fb62a93b054e877e6a6c92f7dcd0b6ae (from https://pypi.python.org/simple/virtualenv/), version 1.4rc1 is a pre-release (use --pre to allow).
  Using version 1.10 (newest of versions: 1.10, 1.9.1, 1.9, 1.8.4, 1.8.3, 1.8.2, 1.8.1, 1.8, 1.7.2, 1.7.1.2, 1.7.1.1, 1.7.1, 1.7, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6, 1.5.2, 1.5.1, 1.5, 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0, 0.9.2, 0.9.1, 0.9, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8)
  Downloading from URL https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.tar.gz#md5=9745c28256c70c76d36adb3767a00212 (from https://pypi.python.org/simple/virtualenv/)
  Running setup.py egg_info for package virtualenv

    C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'entry_points'

      warnings.warn(msg)

    C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'

      warnings.warn(msg)

    C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'test_suite'

      warnings.warn(msg)

    C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'tests_require'

      warnings.warn(msg)

    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

       or: -c --help [cmd1 cmd2 ...]

       or: -c --help-commands

       or: -c cmd --help



    error: invalid command 'egg_info'

    Complete output from command python setup.py egg_info:

    C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'entry_points'

  warnings.warn(msg)

C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'

  warnings.warn(msg)

C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'test_suite'

  warnings.warn(msg)

C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'tests_require'

  warnings.warn(msg)

usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: -c --help [cmd1 cmd2 ...]

   or: -c --help-commands

   or: -c cmd --help



error: invalid command 'egg_info'

----------------------------------------

Cleaning up...

  Removing temporary dir c:\users\joey\appdata\local\temp\pip-build-Joey...
Command python setup.py egg_info failed with error code 1 in c:\users\joey\appdata\local\temp\pip-build-Joey\virtualenv

Exception information:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 134, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1124, in prepare_files
    req_to_install.run_egg_info()
  File "C:\Python27\lib\site-packages\pip\req.py", line 257, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python27\lib\site-packages\pip\util.py", line 670, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\joey\appdata\local\temp\pip-build-Joey\virtualenv

EDIT:Not sure what I did, but now I'm getting this error:

ImportError: No module named setuptools.command

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\joey\appdata\local\temp\pip-build-Joey\Django
Storing complete log in C:\Users\Joey\pip\pip.log

What is this setuptools that I'm missing?

解决方案

Found out what was wrong. I never installed the setuptools for python, so it was missing some vital files, like the egg ones.

If you find yourself having my issue above, download this file and then in powershell or command prompt, navigate to ez_setup’s directory and execute the command and this will run the file for you:

$ [sudo] python ez_setup.py

If you still need to install pip at this point, run:

$ [sudo] easy_install pip

easy_install was part of the setuptools, and therefore wouldn't work for installing pip.

Then, pip will successfully install django with the command:

$ [sudo] pip install django

Hope I saved someone the headache I gave myself!

~Zorpix

这篇关于由于egg_info错误,无法通过pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:49