- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
除了 Mac OSX 自带的 Python 版本之外,我最近还从他们的网站下载了 python。这是我开始在使用 pip 安装软件包时遇到问题。
sudo pip install -vvv pygoogle
将输出如下:
The directory '/Users/robot/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/robot/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pygoogle
Getting page https://pypi.python.org/simple/pygoogle/
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/pygoogle/ HTTP/1.1" 200 233
1 location(s) to search for versions of pygoogle:
* https://pypi.python.org/simple/pygoogle/
Getting page https://pypi.python.org/simple/pygoogle/
"GET /simple/pygoogle/ HTTP/1.1" 200 233
Analyzing links from page https://pypi.python.org/simple/pygoogle/
Found link https://pypi.python.org/packages/source/p/pygoogle/pygoogle-0.6.tar.gz#md5=f9053f1b7350b899811a7c9226c8a2cb (from https://pypi.python.org/simple/pygoogle/), version: 0.6
Skipping link http://www.google.com/apis/ (from https://pypi.python.org/simple/pygoogle/); not a file
"GET /packages/source/p/pygoogle/pygoogle-0.6.tar.gz HTTP/1.1" 200 33672
Downloading pygoogle-0.6.tar.gz
Downloading from URL https://pypi.python.org/packages/source/p/pygoogle/pygoogle-0.6.tar.gz#md5=f9053f1b7350b899811a7c9226c8a2cb (from https://pypi.python.org/simple/pygoogle/)
Running setup.py (path:/private/tmp/pip-build-1jAoXq/pygoogle/setup.py) egg_info for package pygoogle
Running command python setup.py egg_info
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:
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...
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-1jAoXq/pygoogle
Exception information:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/commands/install.py", line 282, in run
requirement_set.prepare_files(finder)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 505, in _prepare_file
abstract_dist.prep_for_dist()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 123, in prep_for_dist
self.req_to_install.run_egg_info()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_install.py", line 407, in run_egg_info
command_desc='python setup.py egg_info')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg/pip/utils/__init__.py", line 732, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-1jAoXq/pygoogle
我已经尝试了以下所有方法,他们只是告诉我软件包 setuptools 已经安装。
sudo pip install setuptools
sudo pip install [--upgrade] setuptools
easy_install [-U] setuptools
请注意以下命令输出:
where python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
where pip
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
/usr/local/bin/pip
which pip
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
echo $SHELL
/bin/zsh
还有我的 .zprofile:
# Setting PATH for Python 2.7
# The orginal version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
最佳答案
关于python - pip 无法安装任何东西,错误 : invalid command 'egg_info' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31719816/
我最近升级了 pip,它破坏了一些东西。 我尝试运行这个: sudo pip install -U ipython pyzmq Requirement already up-to-da
我正在尝试在我的 Ubuntu 14.04 LTS 服务器上安装 Discord 机器人。 但是,我不断收到 egg_info 失败。这方面有很多线索,我知道。我已经尝试了在这些线程中找到的所有“解决
您是否将 foo.egg_info 目录保留在版本控制中? 这里有一个例子,在 VC 中使用它会很好: pip install -e foo 其他人添加了一个新的 EntryPoint (pkg_re
我正在尝试通过 pip 在 ubuntu 13.04 上安装 mitmproxy,但每次我遇到此错误时:“命令 python setup.py egg_info failed with error c
尝试在Python 3.6.0上使用pip3安装mysqlclient $ pip3 install mysqlclient Collecting mysqlclient Using cached
我发现最近在尝试安装 Python 时经常出现这种情况。使用 pip 打包,我收到以下错误。 我在网上找到了一个引用,必须使用下载目录中的“python2 setup.py install”,并且确实
我在 colab 工作。我想为我的项目安装 pysal 模块。我收到以下错误。 ERROR: Command errored out with exit status 1: python setup.
我正在尝试在 Ubuntu 18.04 上安装 Apache Airflow: pip install apache-airflow Collecting apache-airflow Using
当我尝试推送 Heroku 时,出现此错误: remote: This backport is for Python 2.7 only. remote: r
我有一个在 Linux 上运行 Python 3.4.2 的 Raspberry Pi。当我尝试安装 Thingspeak 时执行以下命令: pip install thingspeak 我收到此错误
我已经将我的 Python 2.7.x 更新到 3.6,但当我尝试安装任何包时仍然收到此消息。示例:Flask、Kivy.. Command "python setup.py egg_info" fa
无论我尝试安装哪个包,我都会收到此错误: error: invalid command 'egg_info' ---------------------------------------- Clea
每次我尝试部署到 Heroku 时,我都会收到一个类似于这个问题 ( Python pip install fails: invalid command egg_info ) 的错误,我该如何解决这个
除了 Mac OSX 自带的 Python 版本之外,我最近还从他们的网站下载了 python。这是我开始在使用 pip 安装软件包时遇到问题。 sudo pip install -vvv pygoo
当尝试安装flask-mysql时,我收到以下错误消息: Command "python setup.py egg_info" failed with error code 1 in /private
我想安装rpy2,然后安装anaconda和spyder以使用python。 我尝试过这个命令 py -m pip install rpy2 但它给了我这个错误 Command "python set
我正在尝试使用命令在 mac 中安装 Airflow pip install apache-airflow 出现错误 "python setup.py egg_info" failed with er
我最近获得了 python 3.6,并且正在安装 python 软件包。到目前为止,请求已经成功,但是对于 pygame,我收到错误: WARNING, No "Setup" File Exists
Python 新手,但我安装了 v.3.6.3,并且我正在尝试安装 api from github 。我在命令行中输入“pip installendingclub”并收到错误消息: "Command
运行后出现奇怪的错误 $ pip 安装 mysql-python 有没有人见过这样的“egg_info”无效的错误? 我正在运行 OSX mountain lion Downloading/unpac
我是一名优秀的程序员,十分优秀!