我想在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