您的位置:首页 > 编程语言 > Python开发

Unable to locate package python-pip

2015-05-29 14:18 429 查看
Two Methods:

1) You can install through Ubuntu Software Center.

Open Ubuntu Software Center and search for
easy_install




Highlight alternative Python package installer (python-pip) from the list and click Install



You can check weather the installation was successful or not by giving the command

which pip

you will see the path of installed application, for example

/usr/local/bin/pip

2)

Open terminal by pressing CTRL+ALT+T and type the following:

cd
~


to navigate to your home directory.

Then issue the below command:

wget -P Downloads/ https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
Next step is to run the downloaded script. To do this, issue this command:

sudo python Downloads/distribute_setup.py

and type your user password when prompted (Please, note that your account needs to be a member of Administrators group in order to issue
sudo
).

Hit
Enter
and
let the script run.

To ensure easy_install is installed, issue the command below:

which
easy_install


The typical response in case the installation completed successfully would look something like this:

/usr/local/bin/easy_install


The next thing to do is use easy_install to install pip. For that you’ll need to issue:

sudo
easy_install pip


Enter your password if prompted to confirm command.

Let the installer run and once the installation is completed type:

which
pip


This command should typically respond with something like this:

/usr/local/bin/pip
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: