我想在Ubuntu 10.04中使用pip安裝python-shapely。我得到「未知或不支持的命令‘安裝’」而我想,pip不工作
[email protected]:~$ pip install Shapely
我嘗試安裝點子,得到了以下錯誤:
[email protected]:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pip
0 upgraded, 1 newly installed, 0 to remove and 396 not upgraded.
Need to get 0B/49.8kB of archives.
After this operation, 270kB of additional disk space will be used.
(Reading database ... 252574 files and directories currently installed.)
Unpacking python-pip (from .../python-pip_0.3.1-1ubuntu2.1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-pip_0.3.1-1ubuntu2.1_all.deb (--unpack):
trying to overwrite '/usr/bin/pip', which is also in package pip 0:0.13-1
Errors were encountered while processing:
/var/cache/apt/archives/python-pip_0.3.1-1ubuntu2.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我會很感激任何評論/解決方案。
謝謝!
是的,我做了,它說「安裝/usr/local/lib/python2.6/dist-packages/pip-1.0.2-py2.6。雞蛋「,但是當我嘗試」皮普安裝Shapely「時,我仍然得到」未知或不支持的命令'安裝'「。 – troublemaker
嗨,罪魁禍首可能是草莓Perl,我會建議檢查,看看它是否安裝。可以將它移動到更遠的位置,即「後面」(從左到右)Python入口。 – CaitlinG