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)
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.
To update installed packages to the latest version, run pip install with the --upgrade or -U option.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With