2013-07-16 63 views
8

嘗試卸載與PIP安裝包進行安裝,卸載一些現在點子不起作用。我嘗試安裝熊貓:錯誤與PIP

[sudo] pip install pandas 

這是錯誤:

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 

我已經Linux Mint的伴侶15.我怎麼能解決這個?

回答

1

嘗試安裝與pip install distribute分銷。

+0

我安裝發行並完成正常,但我現在知道它是什麼... –

+0

嘗試再次用'pip install pandas'安裝熊貓。發佈時應包含命令'egg_info'。 – ncho

+0

錯誤是一樣的 –

4

更新您的setuptools安裝與pip install -U setuptools

+2

不是爲我工作。 – smartmouse

+2

這並沒有爲我工作,無論是。 – SummerEla

+0

didnt工作對我來說 –