-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19.3 doesn't work after upgrading from 19.2.3 #7209
Comments
See #7205 |
Looks like you have mixed You should either not use |
Also see #5599 (comment) That it is trying to do anything with |
Honestly, my preference would be to bite the bullet and deprecate all use of wrapper scripts for pip, making |
Hmm... This looks like another case of redistributor executables need to be updated because pip changed -- similar to how pip broke for folks when we did the _internal move: #5599. |
That'd be #3164. I have a proposal for how we can go about this in a manner that minimizes the disruption -- #3164 (comment). |
This is Windows, so no redistributor involved as such. The issue here seems to be that the original install was to site-packages, the upgrade went to user-site, but
|
Ah right I missed that. Yea, this is an issue with an "out-of-date" executable, since I think we can detect that ( |
I'm having same issue with pip 19.3 (upgrading from 19.2.2 ) Running Ubuntu 18.04.3 - Python 2.7.15+ It doesn't matter if i use --user or not, i'm running python and pip in venv (16.7.5) always same error as in OP. I tried uninstalling then installing solely with get-pip.py, same error. Downgrading to 19.2.2 works fine. Any suggestions? |
Hi @Vel-San, do you mind creating a separate issue with clear steps to reproduce (and output from running those steps)? Those details seem different enough that it would be easier to address the issue with that approach. |
I am experiencing the same issue. Running This issue is fairly significant for me as it has broken a number of Docker builds. We typically run We will be removing the automatic |
Hi @cloventt. As mentioned in #5599, this isn't anyone's "fault", but the intersection of several misunderstandings and mis-features involved with resolving a plain
|
I created #7228 based on @pradyunsg's comment above, since that seems like the best action we can take away from this. I will close this issue now, but please let me know if that's not agreeable! |
Moving the files of directoy now gets the following error:
I'm uneable of run pip using \path\to\python.exe -m pip [option] And when I try to upgrade my pip version (19.3) to 19.3.1 I get this error:
|
Hi @j0sete. Can you please describe in detail the changes that were made to get the above error? |
I did the workarround that I explained in the first message:
That fix the invocation of pip but I'm unable to call python -m pip and, in consequence, unable to upgrade pip |
Please delete all traces of pip from
Once finished, install pip using get-pip.py as described here. I don't think there's any specific reason to use |
Seeing same issue on raspbian buster with python 3.7:
What happened: pi@flowmeter:~ $ pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
pi@flowmeter:~ $ sudo pip3 install -U pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 68kB/s
Installing collected packages: pip
Found existing installation: pip 18.1
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-19.3.1
pi@flowmeter:~ $ pip3 --version
Traceback (most recent call last):
File "/usr/bin/pip3", line 11, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
pi@flowmeter:~ $ pip3 --version
Traceback (most recent call last):
File "/usr/bin/pip3", line 11, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
pi@flowmeter:~ $ sudo pip3 install --ignore-installed -U pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-19.3.1
pi@flowmeter:~ $ pip3 --version
Traceback (most recent call last):
File "/usr/bin/pip3", line 11, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
pi@flowmeter:~ $ Eventually: pi@flowmeter:~ $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1734k 100 1734k 0 0 411k 0 0:00:04 0:00:04 --:--:-- 411k
pi@flowmeter:~ $ python3 get-pip.py
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 708kB/s
Installing collected packages: pip
Found existing installation: pip 19.3.1
Uninstalling pip-19.3.1:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/bin/pip3'
Consider using the `--user` option or check the permissions.
pi@flowmeter:~ $ sudo python3 get-pip.py
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.3.1
Uninstalling pip-19.3.1:
Successfully uninstalled pip-19.3.1
Successfully installed pip-19.3.1
pi@flowmeter:~ $ pip3 --versionn
-bash: /usr/bin/pip3: No such file or directory
pi@flowmeter:~ $ pip3 --version
-bash: /usr/bin/pip3: No such file or directory
pi@flowmeter:~ $ /usr/local/bin/pip
pip pip3 pip3.7
pi@flowmeter:~ $ /usr/local/bin/pip3 --version
pip 19.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7) |
Hi @thijstriemstra. That seems like a separate issue, probably what happened is:
You may also check out #5599 for more information, it's our go-to reference for these kinds of situations, but we could probably take this as a sign that it can be made more approachable/easily found. If you still have problems, please create a separate issue. This one hasn't had action in awhile so I will close it. |
@chrahunt is our advice to use IMO, user installs are still good advice (certainly better than |
use pip install --upgrade pip --user command |
Environment
Description
I used pip 19.2.3 and today I upgrade it to 19.3 in my system and it doesn't work using pip command (image attached)
Expected behavior
How to Reproduce
Output
Workaround
%AppData%\Roaming\Python\Python37-32\Scripts\pip*
to%AppData%\Local\Programs\Python\Python37-32\Scripts\
The text was updated successfully, but these errors were encountered: