我是Python的新手,并且一直在尝试安装一些软件包pip.
但是pip install unroll给了我
命令"python setup.py egg_info"失败,错误代码1在C:\ Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll \
我怎么解决这个问题?
当我尝试通过其中的任何一个或通过从他们的站点下载包并运行来安装Python 的Cryptography包时,我收到以下错误:pip install cryptographypython setup.py
D:\Anaconda\Scripts\pip-script.py run on 02/27/14 16:13:17
Downloading/unpacking cryptography
Getting page https://pypi.python.org/simple/cryptography/
URLs to search for versions for cryptography:
* https://pypi.python.org/simple/cryptography/
Analyzing links from page https://pypi.python.org/simple/cryptography/
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2-cp26-none-win32.whl#md5=13e5c4b19520e7dc6f07c6502b3f74e2 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2.1-cp26-none-win32.whl#md5=00e733648ee5cdb9e58876238b1328f8 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2-cp27-none-win32.whl#md5=013ccafa6a5a3ea92c73f2c1c4879406 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.1-cp27-none-win32.whl#md5=127d6a5dc687250721f892d55720a06c (from https://pypi.python.org/simple/cryptography/) because it is not compatible …Run Code Online (Sandbox Code Playgroud) 无论我正在尝试安装哪个软件包,我都会收到此错误:
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
Run Code Online (Sandbox Code Playgroud)
我看到了这个问题,但答案对我不起作用.我可以安装分发包,到目前为止是我可以安装的唯一软件包,但它不能解决问题,因为我尝试安装另一个软件包后会立即返回egg_info错误.我对此感到非常沮丧,因为我在任何地方都找不到任何有用的东西.我也有django和pip以及之前安装的所有东西,但我不得不重新安装所有,现在它不能正常工作......任何帮助都将不胜感激.
这是它存储的日志:
------------------------------------------------------------
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 …Run Code Online (Sandbox Code Playgroud) 我试图为教程安装postgres,但是pip给了我错误:
pip install psycopg
Run Code Online (Sandbox Code Playgroud)
我得到一个错误:
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Run Code Online (Sandbox Code Playgroud)
pg_config我的virtualenv 在哪里?如何配置?我正在使用virtualenv,因为我不想在系统范围内安装postgres.
pip install Twisted在Mac osx 10.9.4上使用virtualenv时,我得到了这个结果:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9r/3b500gbs3093ms87mqqbckr80000gn/T/pip-build-doynftp7/twisted/
我不知道该如何解决.我使用了easy_install,但是我遇到了SSL验证问题.有人有类似的问题吗?其余的错误消息如下.
Collecting twisted
Using cached Twisted-16.6.0.tar.bz2
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/incremental/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
Couldn't find index page for 'incremental' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
No local packages or working download links found …Run Code Online (Sandbox Code Playgroud) 我正在使用python3,我正在尝试在Ubuntu上安装" cairocffi ".为此,我已成功安装:
但是当我试图安装"cairocffi"时pip install cairocffi,我得到了:
File "/usr/local/lib/python3.2/dist-packages/setuptools/dist.py", line 272
, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python3.2/distutils/dist.py", line 261, in __init__
self.finalize_options()
File "/usr/local/lib/python3.2/dist-packages/setuptools/dist.py", line 327
, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/local/lib/python3.2/dist-packages/cffi/setuptools_ext.py", line
161, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/usr/local/lib/python3.2/dist-packages/cffi/setuptools_ext.py", line
48, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/usr/local/lib/python3.2/dist-packages/cffi/setuptools_ext.py", line
24, in execfile
exec(code, glob, glob)
File "cairocffi/ffi_build.py", line 30, in <module>
ffi.cdef(constants._CAIRO_HEADERS)
AttributeError: 'module' object has no attribute '_CAIRO_HEADERS'
----------------------------------------
Command "python setup.py egg_info" …Run Code Online (Sandbox Code Playgroud) 每次我尝试部署到Heroku时,我都会收到一个类似于这个问题的错误(Python pip安装失败:无效命令egg_info)如何解决此问题?它刚刚开始是一个恼人的事情,它会在第二次推动时消失,但现在我根本无法推动.
我的requirements.txt文件.注意:我已经尝试过尝试放入'setuptools'并将其删除,但它没有改变任何东西.
Django==1.5.5
dj-database-url==0.2.1
psycopg2==2.4.6
wsgiref==0.1.2
South==0.8.1
pytz==2013b
gunicorn==0.17.4
django-storages==1.1.6
django-extensions==1.1.1
boto==2.9.9
xhtml2pdf==0.0.5
django-debug-toolbar==0.10.2
numpy==1.6.2
pandas==0.11.0
django-model-utils==1.4.0
django-mailchimp-v1.3==1.3
requests==2.0.0
stripe==1.9.1
django-appconf==0.6
newrelic
redis==2.7.6
django-redis==3.3
rq==0.3.8
django-rq==0.5.1
django-loginas==0.1.3
djangorestframework==2.3.8
pusher==0.8
django-json-field==0.5.5
ZSI==2.0-rc3
APScheduler==2.1.0
django-twilio==0.4
rq-scheduler==0.3.6
django-ios-notifications==0.1.5
mixpanel-py==3.0.0
Run Code Online (Sandbox Code Playgroud) 我正在使用Centos 7和Python 2.7.5.问题是当我安装Pandas时,我收到此错误消息
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-21ft0H/pandas
Run Code Online (Sandbox Code Playgroud)
我已经尝试了很多解决方案但是没有成功yum -y update.
yolk -U最近运行我注意到pip需要从1.2.1升级到1.4.1并且尽职尽责地尝试升级它
pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)
虽然yolk -U再次运行似乎确认升级成功(pip不再列为过时),但这会生成错误消息
Downloading/unpacking pip from https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz#md5=6afbb46aeb48abac658d4df742bff714
Downloading pip-1.4.1.tar.gz (445kB): 445kB downloaded
Running setup.py egg_info for package pip
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
Found existing installation: pip 1.2.1
Uninstalling pip:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py", line 107, in main
File "/Library/Python/2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py", …Run Code Online (Sandbox Code Playgroud) python ×7
pip ×6
install ×2
macos ×2
python-2.7 ×2
cairo ×1
centos7 ×1
cryptography ×1
django ×1
heroku ×1
installation ×1
openssl ×1
package ×1
pandas ×1
postgresql ×1
psycopg2 ×1
python-cffi ×1
windows ×1