I encountered this when building a virtual environment on a system that uses modules to manage software packages. What solves it for me is to run pip in this way, to force usage of the correct python installation in my vortualenv : python3 -m pip install PACKAGE instead of pip3 install PACKAGE I realised this when I tried to follow some of the answers here that suggest re-installing pip and the error output I got was pointing to an existing site-wide python library path although I had activated my virtualenv.
As mentioned in this answer stackoverflow. For me python -m pip uninstall pip solved the issue. Its probably due to a version conflict, try to run this, it will remove the older pip somehow.
Tinashe Makuti Tinashe Makuti 51 2 2 bronze badges. For what it's worth, this appears to be the solution for a Debian-like distro e. I sudo apt-get remove d the python-pip package 2. No more error message. Thanks :. Ateeb Ateeb 3, 3 3 gold badges 8 8 silver badges 17 17 bronze badges. GeorgesD GeorgesD 49 3 3 bronze badges. My case was weirder because "sudo" still gave me the same error.
I had to switch to root sudo su on ubuntu to be able to do pip3. Merwanski Merwanski 29 3 3 bronze badges. This one works for me however you have to change it to the python version you are using. Mehe Mihai. Mehe 4 4 silver badges 12 12 bronze badges. I solved this issue by reinstalling pip via conda: conda install pip After that, pip returns to normal.
I use mac OS Gil Hiram Gil Hiram 5 5 silver badges 13 13 bronze badges. John John 71 1 1 silver badge 3 3 bronze badges.
This command works for me. I fixed this problem by sudo apt-get install python3-pip this worked even for python2. Yu Jiaao Yu Jiaao 3, 4 4 gold badges 37 37 silver badges 53 53 bronze badges. You will obtain some file as following: import re import sys from pip. Hung N. Hung 6 6 bronze badges. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 0. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings. Dennis Kaarsemaker Dennis Kaarsemaker HopelessN00b 53k 31 31 gold badges silver badges bronze badges. Jaap van der Herberg Jaap van der Herberg 11 3 3 bronze badges. Michael Hampton k 39 39 gold badges silver badges bronze badges.
This worked for me. Vishnu Kumar Vishnu Kumar 5 5 bronze badges. Welcome on the ServerFault! Maybe you could elaborate this more, it is now like a magician answer "and sacrifice a black hen and you will have rain".
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Yum update error: "can't start new thread" Ask Question. Asked 11 years, 1 month ago. Active 7 years, 1 month ago. Viewed 8k times. I found several posts on this, but none of them work.
My OS is Centos 5. Improve this question. Michael Mrozek Looks pretty much like python problem. Why don't you post this to yum bugtracker? I've gotten this error when I ran out of memory on a small 64M VM. Add a comment. Active Oldest Votes. Improve this answer.
0コメント