我昨天大部分时间都在寻找安装的明确答案pip(Python的包管理器).我找不到一个好的解决方案.
我该如何安装?
我是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) 我发现最近经常在我尝试使用pip安装Python包时,我得到下面的错误.
我在网上找到了一个必须使用下载目录中的" python2 setup.py install " 的参考资料,并且确实发现如果我手动查找并下载软件包(来自pypi),这将会有效.
但是,我不知道pip在哪里下载包,和/或为什么它以这种方式失败.
我尝试进行点升级,但它也以类似的方式失败,出现了一堆"未知的分发选项"错误(entry_points,zip_safe,test_suite,tests_require)!
尝试使用ActiveState的pypm失败,因为它们具有较小的库基础,并且它不包括这些包.
C:\test>pip install requests-oauth
Downloading/unpacking requests-oauth
Downloading requests-oauth-0.4.1.tar.gz
Running setup.py egg_info for package requests-oauth
E:\Plang\ActivePython\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
E:\Plang\ActivePython\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
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:
E:\Plang\ActivePython\lib\distutils\dist.py:267: UserWarning: Unknown distribution …Run Code Online (Sandbox Code Playgroud) 我试图pip install --upgrade pip在OSX 上升级pip,pip和easy_install都不起作用.
跑点的时候
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in <module>
parse_requirements(__requires__), Environment()
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 596, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==1.3.1
Run Code Online (Sandbox Code Playgroud)
运行easy_install时
File "/usr/local/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in <module>
parse_requirements(__requires__), Environment()
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 596, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute==0.6.36
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
更新 我找到了解决方案.
我做到了 cd /usr/local/lib/python2.7/site-packages && ls
找到pip-1.4.1-py2.7.egg-info …
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) 我想做make install,但我一直在收到错误.我已经尝试过以下答案:由于egg_info错误,无法通过pip安装
Command python setup.py egg_info failed with error code 1 in /abc/abc_env/build/MySQL-python
Storing debug log for failure in /Users/Pat/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
完整的调试日志:http://pastebin.com/cnGgWU4G
这是Makefile:
virtualenv-2.7 my_env && \
source my_env/bin/activate && \
pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
看起来问题只发生在虚拟环境中.我能够pip install mysql-python没有问题,但pip install -r requirements.txt在尝试安装时有错误mysql-python
requirements.txt如下:
Flask==0.10.1
Jinja2==2.7.1
MarkupSafe==0.18
MySQL-python==1.2.4
PyYAML==3.10
SQLAlchemy==0.8.3
Tempita==0.5.1
Werkzeug==0.9.4
argparse==1.2.1
dataset==0.3.13
decorator==3.4.0
docopt==0.4.0
itsdangerous==0.23
mandrill==1.0.53
mysql-connector-python==1.0.12
requests==2.0.1
sqlalchemy-migrate==0.7.2
wsgiref==0.1.2
Run Code Online (Sandbox Code Playgroud) 上传我的Python C扩展的二进制发行版后python setup.py bdist upload,easy_install [my-package-name]失败"错误:无法在/ tmp/easy_install/package-name-etc-etc中找到安装脚本".
我究竟做错了什么?
我已经阅读了几个关于如何安装MySQLdb的不同解释,但我不确定哪种情况适用于我,因为我的错误信息不同.我的系统似乎无法找到MySQLdb.我安装了pymysql,但是我需要导入MySQLdb来使用该库中的程序.
谢谢你的帮助.
$ conda install MySQLdb
Run Code Online (Sandbox Code Playgroud)
获取包元数据:....错误:当前osx-64通道中找不到匹配的包:mysqldb
你的意思是其中之一吗?
pymysql
Run Code Online (Sandbox Code Playgroud)
您可以在anaconda.org上搜索此软件包
anaconda search -t conda mysqldb
$ anaconda search -t conda mysqldb
Run Code Online (Sandbox Code Playgroud)
使用anaconda-server api站点https://api.anaconda.org
运行'anaconda show'以获取更多详细信息:未找到包名称 版本| 包装类型| 平台
------------------------- | ------ | --------------- | ---------------找到0个包裹
我正在尝试安装pandas,pip install pandas但是当我这样做时,我收到错误:
命令python setup.py egg_info失败,错误代码1在c:\ users [用户名]\appdata\local\temp\pip_build_ [用户名]\pandas
我按照这里给出的答案安装,ez_setup.py没有发生任何事故,但在做的时候仍然会收到错误pip install pandas.
感谢您的帮助,如果我能提供更多信息,请告诉我.
python ×10
pip ×8
install ×2
macos ×2
binary ×1
cryptography ×1
distribute ×1
easy-install ×1
mysql ×1
mysql-python ×1
openssl ×1
package ×1
pandas ×1
python-2.7 ×1