python - pip fails to install anything, error: invalid command 'egg_info' -
i downloaded python website in addition python version comes mac osx. when began have problems installing packages pip.
sudo pip install -vvv pygoogle
will output following:
the directory '/users/robot/library/caches/pip/http' or parent directory not owned current user , cache has been disabled. please check permissions , owner of directory. if executing pip sudo, may want sudo's -h flag. directory '/users/robot/library/caches/pip/http' or parent directory not owned current user , cache has been disabled. please check permissions , owner of directory. if executing pip sudo, 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) search 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 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 file "get /packages/source/p/pygoogle/pygoogle-0.6.tar.gz http/1.1" 200 33672 downloading pygoogle-0.6.tar.gz downloading 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 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 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 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 error code 1 in /private/tmp/pip-build-1jaoxq/pygoogle
i have tried of following, tell me package setuptools installed.
sudo pip install setuptools sudo pip install [--upgrade] setuptools easy_install [-u] setuptools
please note following commands output:
where python /library/frameworks/python.framework/versions/2.7/bin/python /usr/local/bin/python python /library/frameworks/python.framework/versions/2.7/bin/python pip /library/frameworks/python.framework/versions/2.7/bin/pip /usr/local/bin/pip pip /library/frameworks/python.framework/versions/2.7/bin/pip echo $shell /bin/zsh
and .zprofile:
# setting path python 2.7 # orginal version saved in .zprofile.pysave path="/library/frameworks/python.framework/versions/2.7/bin:${path}" export path
try pip install --upgrade setuptools
or easy_install -u setuptools
or
download this file , execute python ez_setup.py
Comments
Post a Comment