点不起作用 [英] pip not working

查看:87
本文介绍了点不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu 10.04中使用pip安装python-shapely.我尝试时收到未知或不受支持的命令'安装'",

I am trying to install python-shapely with pip in Ubuntu 10.04. I got "Unknown or unsupported command 'install'" while I tried,

user@desktop:~$ pip install Shapely

我尝试安装pip并收到以下错误:

I tried installing pip and got the following error:

user@desktop:~$ 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)

我将不胜感激任何评论/解决方案.

I'd appreciate any comment/solution.

谢谢!

推荐答案

首先安装pip,然后出现此错误,然后尝试安装python-pip吗?

Did you install pip first, then get this error, then try to install python-pip?

如果是这样,请先删除pip(apt-get删除pip),然后安装python-pip,然后重试.

If so, first remove pip (apt-get remove pip), then install python-pip instead and try again.

(我只是遇到了同样的问题,不确定python 2.7是否使用pip,而2.6是否使用python-pip?这可能是问题所在.)

(I just had the same problem, not sure if python 2.7 uses pip and 2.6 uses python-pip? That might be the issue.)

这篇关于点不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆