Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing with pip

Trying to uninstall a package installed with pip, I uninstall some and now pip don't work. I try to install pandas:

[sudo] pip install pandas

And this is the error:

Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from pandas)
Downloading/unpacking pytz (from pandas)
Downloading pytz-2013b.zip (535kB): 535kB downloaded
Running setup.py egg_info for package pytz
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  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:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'

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'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/pytz
Storing complete log in /root/.pip/pip.log

I have Linux Mint Mate 15. How I can resolve this??

like image 912
F.N.B Avatar asked Jul 16 '13 22:07

F.N.B


People also ask

Why is pip install giving syntax error?

The python pip invalid syntax error is occurring because pip is run from the command line, not the Python interpreter. It is a program that installs modules, so you can use them from Python. Once you have installed the module, then you can open the Python shell and do import selenium.

Why pip is not working in CMD?

The error “'pip' is not recognized as an internal or external command” is encountered because of two main reasons that are. PIP Installation path is not added to the system variables: If you have installed python through prompt then you need to configure PIP path manually.


2 Answers

Update your setuptools installation with pip install -U setuptools.

like image 146
zakx Avatar answered Oct 22 '22 10:10

zakx


Try installing distribute with pip install distribute.

like image 42
ncho Avatar answered Oct 22 '22 10:10

ncho