python linux ------>pip install ipython, error

Sorrry,Ican'tusepinyininmyCompany:MylinuxDebian7.5,python2.7.3.Ihaveinstallpipsuccess... Sorrry, I can't use pinyin in my Company:
My linux Debian 7.5, python 2.7.3. I have install pip successfully.But when I input 'pip install ipython' on the console.it returned this:

root@debian:# pip install ipython
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3074, in <module>
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3060, in _call_aside
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 647, in _build_master
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 660, in _build_from_requirements
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 833, in resolve
pkg_resources.DistributionNotFound: The 'pip==1.1' distribution was not found and is required by the application
How to solve this problem?
展开
 我来答
sylecn
推荐于2016-11-20 · TA获得超过2991个赞
知道大有可为答主
回答量:1169
采纳率:57%
帮助的人:708万
展开全部

Do not use the pip from debian package repo. it's out-dated.

There are two ways to resolve this:

  1. uninstall python-pip package and install pip from pip official website. there is a script for that.

  2. upgrade pip using pip first. that is: sudo pip install -U pip


When you are on latest pip version, try install ipython again.

追问
i have solve the problem, thank you.
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式