pip install --upgrade pip
I want to update with the command, but I am getting an error, the error is below.
Hello,
pip install --upgrade pip
I want to update with the command, but I am getting an error, the error is below.
https://prnt.sc/X_R-RZHqRnzt
Related
I'm trying to install requirements.txt file in python 2.7 in ubuntu but i get ERROR:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-YYFUnW/psycopg2/
What exactly does that mean, and how do I fix it? I already tried these commands:
apt-get install python-bs4
sudo install --upgrade setuptools
sudo apt-get update
Error Image :
This error can occur because of the version of psycopg2==2.6.2 you are trying to install. I did face this error while installing this version of psycopg2. So to avoid this error, you can use another version of it or the latest version as:
pip install psycopg2
Also, psycopg2 is going to be renamed from release of version 2.8, so it is recommended to install it using:
pip install psycopg2-binary
If you are installing psycopg2 from a requirements.txt file, you can comment out the package listed in the file as:
# psycopg2==2.6.2
Then install the package as suggested above, then install other requirements from the file with the package name still commented.
I am facing these errors when I am running the python manage.py runserver
Also i have tried:
1.pip install MySQL-python
2.pip install mysql-python
but nothing worked.I need help
Errors i am getting
I faced the same problem time ago.. I solved it doing this:
1) for Windows:
$ pip3 install mysqlclient
2) for Linux:
$ pip3 install mysqlclient
if fails with "mysql_config not found" you have to do (only linux):
$ apt-get install libmysqlclient-dev
Of course, use pip instead of pip3 if you're working with python2.7
I tried the following command so many times without luck:
sudo -H pip install -U pip
Here is the output:
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
My pip is still at version 8.1.1
pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
What is going on? Why the upgrade option didn't work?
pip install installs everything into /usr/local/lib/python2.7/dist-packages/.
Your new pip is now /usr/local/bin/pip. Add /usr/local/bin before /usr/bin in your PATH and verify that the new pip is being run with pip --version.
Upd. We finally found the culprit of the problem — /usr/lib/python2.7/dist-packages/easy-install.pth contains wrong line /usr/lib/python2.7/dist-packages. Remove it.
I have issues with regards to the upgrade from pip v8.1.2 to v9.0.0. I have read several other posts on previous upgrades but the solutions were not valid for my problem.
I have installed Python 3.6.0b2 (runs on macOS Sierra) and I cannot manage to upgrade pip anymore.
When I run $ pip install --upgrade pip I get an Exception which points to /Library/Python/2.7 folders.
When I run $ pip3 install --upgrade pip I get an Exception which points to /Library/Python/3.5 folders.
Both time I get a message telling me to consider upgrading via the 'pip install --upgrade pip'. How could I fix this ?
Many thanks in advance.
I have multiple versions of pip and python on my CentOS. When I type pip2.7 install --upgrade pip it becomes clear that pip2.7 is trying to upgrade a different version of pip as the path to the pip it is trying to upgrade is not the same as the path yielded by which pip2.7
How do I make pip upgrade the proper pip and not the 2.6 pip?
I resolved this by upgrading pip, making my 2.6 pip utilize python 2.7 instead. For whatever reason, both pip and pip2.7 were upgraded. Then I reinstalled pip using yum package manager so it is now 2.6