I use Linux, Debian for Python 3.6.4, I also use pip3.6. It has asked me a lot to upgrade but it will not work, I always get this error.
Already, I have tried pip3.6 install ---upgrade pip
Just try sudo pip3.6 install --upgrade pip. If that does not work, reinstall pip.
Related
I am intalling Rasa X in a Python 3.7 conda environment on Windows 10. pip version is 20.3.3.
pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple
It have been going on for 5-6 hours and seems to be confused:
Any idea what I can do to fix this?
It is caused by the dependency resolution backtracking logic introduced in pip v20.3.
(docs)
A fix for now is to downgrade pip to v20.2, with:
pip install --upgrade pip==20.2
Instead of downgrading pip you can also use the old dependency resolver until pip 21.0 ships (that's when they strip the old resolver from the code base), like so:
pip3 install --use-deprecated=legacy-resolver rasa-x --extra-index-url https://pypi.rasa.com/simple
After facing this issue for quite a while, I finally got if fixed after enquiring at rasa forum.
With rasa==2.7.0 and pip==20.2, I ran the command pip install rasa-x --extra-index-url https://pypi.rasa.com/simple which was quick. It installed rasa-x==0.40.1 for me.
I had the same problem, I downgraded pip to v 20.2. Then I had to download Visual Studio Build Tools 2019 and the issue is resolved.
The latest version of pip 21.3. also solves the problem. Just try and upgrade pip by using
pip install --upgrade pip
I have two versions of python installed on my computer (3.6 and 3.7). Just upgraded pip to the latest version (19.0.1) using the command python -m pip install --upgrade pip however i think it only upgraded the pip for python version 3.6. When attempting to install a package specifically for python version 3.7 with the following command pip3.7 install scipy i got the message saying You are using pip version 18.1, however version 19.0.1 is available. Clearly only the pip for version 3.6 was upgraded. I cannot figure out a command to upgrade 3.7 pip as well. I tried the following:
python -m pip3.7 install --upgrade pip
This did not work (Trying to use the logic of how packages are handled for different versions of python). Could not find a question that addressed this specific issue. Any help would be greatly appreciated.
Use the python 3.7 interpreter to run the command:
python3.7 -m pip install --upgrade pip
Or use the pip3.7 binary directly:
pip3.7 install --upgrade pip
export LD_LIBRARY_PATH=/usr/lib64
activate pip3
I ran into the same problem. If you have Microsoft Visual also installed the best command to use is
py -m pip install --upgrade pip --user
I used that command, and it worked like a charm.
Im trying to install google assistant on my Raspberry Pi, but when I keep getting an error: pip is a package and cannot be directly executed
Instead of
pip [...]
Try doing
python -m pip [...]
Can't really help more without more info.
I think your version of pip is old. You need to upgrade it first, like this:
pip install -U pip
You may need to upgrade setuptools too:
pip install -U setuptools
Since google-assistant-library is available as a wheel, you need to install wheel too:
pip install wheel
I don't know if you can do that with Raspberry Pi, but I recommend you to used a virtualenv. That way, you have a fresh and isolated Python executable and a recent version of pip.
virtualenv your_proj
source your_proj/bin/activate
pip install wheel
pip install google-assistant-library
For newer version ie. using pip3:
pip3 install -U <<package name>>
I had the same problem.
I think it was an outcome of a failed
> .\python.exe -m pip install --upgrade pip
do to some environment misconfiguration.
So it first removed the existing version 10.0.1, and then the installation of the new version 22.3.1 failed, leaving me with no pip.
From official documentation, I ran
> .\python.exe -m ensurepip --upgrade
which restored the original pip 10.0.1.
Then I fixed the environment problem, and then again
> .\python.exe -m pip install --upgrade pip
I now have pip 22.3.1.
I am running Ubuntu and have both python 2.7 and python 3.5 on my system
I have tweaked the settings so that when I do
python test.py
python3 runs
I wanted to install the module pyperclip in python3..
pip install pyperclip
installed it for python 2
Quick google search suggested to use
pip3 install pyperclip
but I get
pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip
When I run this command I get the following:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1- 2ubuntu0.2 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-setuptools but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What should I do?
It seems like it could be an error in your path. If you installed Python 3.5 it should come with pip, so try doing python -m pip and this should run Python 3.5's pip. To install something, simply use the normal pip commands as you have, for example python -m pip install pyperclip.
Use the aptitude package manager as it will provide you simple suggestion to fix your unmet dependencies problem. Install it via apt:
sudo apt-get install aptitude
Then install pip3 with this command:
sudo aptitude install python3-pip
Then choose the solution suggested to you by aptitude. In one of the suggestions aptitude will suggest you to downgrade from 8.1.1-2ubuntu0.2 to 8.1.1-2. Accepting this suggestion solves the issue. Just make sure the downgrade doesn't cause you other hurdles.
I just cleaned up my mac after a mavericks install (yeah, i'm late to the party).
I'm using homebrew Python but I've confirmed this error with the stock apple python as well. I've got pip 1.5.6 installed system-wide and also in my virtualenv.
I can pip-sys install for system-wide pip installs no problem. When In a virtualenv though, I get the following error, even with which pip.
pip install -U -r requirements/dev.pip
Usage:
pip <command> [options]
no such option: -E
Seems there is something wrong with the pip install within the virtualenv. Pip is not working but pip2 install works fine. So maybe there's a version conflict where pip installs thinking it's a different python version from what was installed.
To recap
pip install south
fails with above error
pip2 install south
works fine.