Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip - Requirement already satisfied?

pip recognize global installed packages..?! :-(

I've used virtualenvwrapper preactivate hook to clean PYTHONPATH,

export PYTHONPATH="" 

then echo $PYTHONPATH returns empty string, but this didn't help.

What's wrong?

bentzy@lama:~$ mkvirtualenv test
New python executable in test/bin/python
Installing setuptools............done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/get_env_details
(test)bentzy@lama:~$ which pip
/home/bentzy/.virtualenvs/test/bin/pip
(test)bentzy@lama:~$ sudo pip install simplejson
Requirement already satisfied (use --upgrade to upgrade): simplejson in /usr/lib    /python2.7/dist-packages
Cleaning up...
(test)bentzy@lama:~$ echo $PYTHONPATH

(test)bentzy@lama:~$ pip --version
pip 1.2.1 from /home/bentzy/.virtualenvs/test/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg (python 2.7)
like image 648
bentzy Avatar asked Feb 02 '13 18:02

bentzy


People also ask

What happens when you upgrade pip?

The short answer is, pip is just like any other PyPI package and you can upgrade it to newer (or downgrade to older) versions, just as you would upgrade or downgrade any other package. Pip is a standard package manager for installing and maintaining Python packages.

How do I upgrade pip request?

To update installed packages to the latest version, run pip install with the --upgrade or -U option.

How do you solve warning there was an error checking the latest version of pip?

Solution 1: Just Upgrade Your PIP But Sometimes Its fail to check Recent Update And That's Why You are facing This Warning Message You can Ignore This Message Or You can Just Update Your PIP to its latest version and then You'll No More face this warning message.

Can you upgrade pip?

You can run “pip install --upgrade pip” to install and use the new version of pip. To update pip2 or pip3 using this command, only replace the first pip with the pip version.


1 Answers

You are using sudo to install simplejson, but if you use sudo your $PATH may be changed, and that seems to be the problem.

Just use pip install simplejson (no sudo included) and it is probably going to work.

Use sudo only when you want to affect your whole system.

like image 105
Hugo Tavares Avatar answered Sep 21 '22 08:09

Hugo Tavares