Skip to content
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

Unable to install anything using pip after upgrade to 20.0 #7620

Closed
HenrikOssipoff opened this issue Jan 21, 2020 · 103 comments
Closed

Unable to install anything using pip after upgrade to 20.0 #7620

HenrikOssipoff opened this issue Jan 21, 2020 · 103 comments

Comments

@HenrikOssipoff
Copy link

Environment

  • pip version: 20.0
  • Python version: 3.6.8
  • OS: Ubuntu 14.04.6 (Don't judge)

Description

During our build process, we automatically upgrade to the newest version on pip. After upgrading to 20.0 (using pip install -U pip setuptools), we are unable to install any packages.

Output

Traceback (most recent call last):
  File "/home/svc-web/webshop/env/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
    from pip._internal.operations.prepare import RequirementPreparer
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
    from pip._internal.distributions import (
  File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
    from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution'
@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Jan 21, 2020
@ntoll
Copy link

ntoll commented Jan 21, 2020

I see the same thing:

$ pip install requests
Traceback (most recent call last):
  File "/home/ntoll/.virtualenvs/sdclient/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
    from pip._internal.operations.prepare import RequirementPreparer
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
    from pip._internal.distributions import (
  File "/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
    from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (/home/ntoll/.virtualenvs/sdclient/lib/python3.7/site-packages/pip/_internal/distributions/source/__init__.py)

Python 3.7.2 on Ubuntu 18.04

@honnix
Copy link
Contributor

honnix commented Jan 21, 2020

Same here #7619 (comment)

Seems like unclean dist.

@akaihola
Copy link
Contributor

akaihola commented Jan 21, 2020

Exactly the same with Python 3.7.5 on Fedora 29. The same happens both in virtualenvs and with --user. Also, doesn't matter if I run pip3.7 or python3.7 -m pip.

And as @ntoll suggests below, kudos for everyone working to fix this unfortunate glitch! Nice to see only neutral and supportive comments here. Open Source community at its best.

@landfillbaby
Copy link

same here, python 3.8.1 on android 9 termux. i assume it's the same for basically everyone

@svms1
Copy link

svms1 commented Jan 21, 2020

I have the same issue in a docker build, using the python:3.8-busterimage:

Step 1/6 : FROM python:3.8-buster
 ---> 0a3a95c81a2b
Step 2/6 : ADD . /app
 ---> a3be40376bd8
Step 3/6 : WORKDIR /app
 ---> Running in 6f53960d3257
Removing intermediate container 6f53960d3257
 ---> 14b7a3ccf004
Step 4/6 : RUN pip install --upgrade pip setuptools
 ---> Running in 6f9dfc84e0a3
Collecting pip
  Downloading https://files.pythonhosted.org/packages/60/65/16487a7c4e0f95bb3fc89c2e377be331fd496b7a9b08fd3077de7f3ae2cf/pip-20.0-py2.py3-none-any.whl (1.5MB)
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/a7/c5/6c1acea1b4ea88b86b03280f3fde1efa04fefecd4e7d2af13e602661cde4/setuptools-45.1.0-py3-none-any.whl (583kB)
Installing collected packages: pip, setuptools
  Found existing installation: pip 19.3.1
    Uninstalling pip-19.3.1:
      Successfully uninstalled pip-19.3.1
  Found existing installation: setuptools 41.6.0
    Uninstalling setuptools-41.6.0:
      Successfully uninstalled setuptools-41.6.0
Successfully installed pip-20.0 setuptools-45.1.0
Removing intermediate container 6f9dfc84e0a3
 ---> 4db4dd1c01a1
Step 5/6 : RUN pip install -r requirements.txt
 ---> Running in 01e0b70d0d81
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
    from pip._internal.operations.prepare import RequirementPreparer
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
    from pip._internal.distributions import (
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
    from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (/usr/local/lib/python3.8/site-packages/pip/_internal/distributions/source/__init__.py)

@cj-dainius-prakapavicius
Copy link

cj-dainius-prakapavicius commented Jan 21, 2020

Same here. Python 3.7.4 using Ubuntu 18.04 and Alpine linux on Docker.

@messa
Copy link

messa commented Jan 21, 2020

Same on MacPorts Python on macOS:

$ rm -rf venv && python3.8 -m venv venv && ./venv/bin/python -m pip install -U pip && ./venv/bin/python -m pip install requests
Collecting pip
  Using cached https://files.pythonhosted.org/packages/60/65/16487a7c4e0f95bb3fc89c2e377be331fd496b7a9b08fd3077de7f3ae2cf/pip-20.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.0
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  ...
  File "/Users/messa/test/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
    from pip._internal.distributions import (
  File "/Users/messa/test/venv/lib/python3.8/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
    from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (/Users/messa/test/venv/lib/python3.8/site-packages/pip/_internal/distributions/source/__init__.py)

@mwoss
Copy link

mwoss commented Jan 21, 2020

Exact same issue. Python 3.7.6, system: Mac OS Catalina

@jamescooke
Copy link

Same issue on Python 3.7.3 which is the Ubuntu 19.04 default.

@ntoll
Copy link

ntoll commented Jan 21, 2020

It's worth mentioning that mistakes, problems and unforeseen mishaps happen to all projects, no matter how much you plan and try to mitigate such events.

Spare a thought and supportive comments for the volunteer Pythonistas looking into this and fixing it for all our benefit.

@honnix
Copy link
Contributor

honnix commented Jan 21, 2020

Note a maintainer of pip, but I guess we have two options to move forward: 1) cut off a clean dist and bump the version; 2) at least pull off 20 from pypi (might be too late already).

@xdralex
Copy link

xdralex commented Jan 21, 2020

In the meanwhile this can be helpful if you use virtualenv:

virtualenv venv --no-pip
source venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py pip==19.3.1

@Aidenir
Copy link

Aidenir commented Jan 21, 2020

Just wanted to chime in that our build system went down with this too. Luckily its not critical, and I agree with @ntoll that sometimes things goes south, and I'm sure you're doing all you can to fix this.

@sbidoul
Copy link
Member

sbidoul commented Jan 21, 2020

@pradyunsg I confirm the issue. I suggest pulling it from PyPI.

@jamescooke
Copy link

@xdralex Yes 👍 I was just typing something similar.

Plus, if you've got a usable pip in your global env, then virtualenv venv --no-download will use that one instead of downloading the broken version.

@traits
Copy link

traits commented Jan 21, 2020

Only for completeness: Windows is also affected. Win10 + Python 3.7.4 here (WinPython):

python -m pip uninstall pip Traceback (most recent call last): File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\__main__.py", line 19, in <module> sys.exit(_main()) File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\cli\main.py", line 73, in main command = create_command(cmd_name, isolated=("--isolated" in cmd_args)) File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\commands\__init__.py", line 96, in create_command module = importlib.import_module(module_path) File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\commands\uninstall.py", line 9, in <module> from pip._internal.cli.req_command import SessionCommandMixin File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\cli\req_command.py", line 20, in <module> from pip._internal.operations.prepare import RequirementPreparer File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\operations\prepare.py", line 16, in <module> from pip._internal.distributions import ( File "v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\distributions\__init__.py", line 1, in <module> from pip._internal.distributions.source import SourceDistribution ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (v:\bin\scripting\python\3.7.4\python-3.7.4.amd64\lib\site-packages\pip\_internal\distributions\source\__init__.py)

Seemingly affects any pip or python -m pip commands after installing 20.0. So, I'm also unable to revert to 19.3.

edit: This workaround helped.

@jamescooke
Copy link

For those people here with broken build processes because they do something similar to OP's pip install -U pip setuptools - remember you can tweak this to ban or constrain any particular version.

Both of these seem to work OK for me locally:

$ pip install -U "pip<20" setuptools
$ pip install -U "pip!=20.0" setuptools

pip will warn you about not being on the latest version, but won't install v20.0.

@honnix
Copy link
Contributor

honnix commented Jan 21, 2020

@james-gonzalez Not sure cutting off a new release is part of CI.

Reading https://pip.pypa.io/en/latest/development/release-process/#creating-a-new-release, maybe after checking out master a git clean should be applied.

@Prior99
Copy link

Prior99 commented Jan 21, 2020

I have the exact same issue in a clean docker container running latest Ubuntu as well as an up-to-date Arch Linux.

@cptx032
Copy link

cptx032 commented Jan 21, 2020

I tried to download and run get-pip in a new virtualenv but it not works still :/
Ive noted that in pip/_internal/distributions/ folder have a python file called source.py and a folder called source. Just for now I manually removed the folder and pip is running again

@arossert
Copy link

A workaround to get pip working again is getting the get-pip.py script and running:
python get-pip.py pip==19.3.1
This will revert pip to the previous version

@kushaldas
Copy link

Do you not listen to your own CI tests?

Always remember that the maintainers are also humans, and programming mistakes are actually common among this species. We should be providing any support they or the community need than blaming people.

blueyed added a commit to blueyed/pytest that referenced this issue Jan 21, 2020
Upgrading pip unnecessarily can be disruptive, e.g. when pip 20 breaks
[1].  This makes it more predictable, and a bit faster also.

1: pypa/pip#7620
@jmd-dk
Copy link

jmd-dk commented Feb 11, 2020

It might be the same problem as here. Try using

pip install --no-use-pep517 <package>

@imomaliev
Copy link

Probably related pypa/pipenv#4128. Another fix I found working for me is

pip install -U pipenv virtualenv
virtualenv .venv --seeder pip
PIPENV_VENV_IN_PROJECT=1 pipenv install

@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Feb 21, 2020
@karolyi
Copy link

karolyi commented Feb 23, 2020

@jeffself same situation here.

#5599 (comment) solves the problem (as indicated by the pip message).

@marturojt
Copy link

A workaround to get pip working again is getting the get-pip.py script and running:
python get-pip.py pip==19.3.1
This will revert pip to the previous version

Thanks bro... this workaround saves my archlinux distro =)

@adamkeinan
Copy link

I would suggest a common workground that save lots of Time and Pain:
Open the Setup.cfg and the Pip module and validate your pip version,module name+version etc... many times after upgrade/downgrade the file status doesn't change, so as the Requirements which lead to conflicts.

tchaikov added a commit to tchaikov/ceph-build that referenced this issue Apr 21, 2020
to address the issue of pypa/pip#7620 when
installing pip 10 with pip 20

Signed-off-by: Kefu Chai <kchai@redhat.com>
@pradyunsg
Copy link
Member

Now that PyPI has support for yanked releases, I've gone ahead and marked pip 20.0 as "yanked". pip > 19.2 would not install it by default and would print a warning, when installing it via pip install pip==20:

WARNING: The candidate selected for download or install is a yanked version: 'pip' candidate (version 20.0 at https://files.pythonhosted.org/packages/60/65/16487a7c4e0f95bb3fc89c2e377be331fd496b7a9b08fd3077de7f3ae2cf/pip-20.0-py2.py3-none-any.whl#sha256=eea07b449d969dbc8c062c157852cf8ed2ad1b8b5ac965a6b819e62929e41703 (from https://pypi.org/simple/pip/) (requires-python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*))

@AvAkanksh
Copy link

i am having issue with installing packages using pip , even though i have installed python using anaconda still i am facing the issue, i tried uninstalling it and then again installing it back to check whether the issue was solved or not , but the error still remained.

Here is the screenshot of the error i have been facing , please help me sort out this error.
Thanking you in Advance
image

@AvAkanksh
Copy link

basically i am getting an error if i use pip , what do i need to do

@gabrielsaviank
Copy link

@AvAkanksh As I saw it's kinda uncertain this error, have you tried to fully remove Python from your computer?

@AvAkanksh
Copy link

@AvAkanksh As I saw it's kinda uncertain this error, have you tried to fully remove Python from your computer?

Ya I have tried even that but there was so change in the output , it still gave me the same error

@akaihola
Copy link
Contributor

@AvAkanksh, using Google I found these probably much better places to look for hints to solve your specific issue:

If you find a solution, a most helpful thing to do would be to link to it in comments of all the above pages.

Good luck, hope you find the solution!

@ghost
Copy link

ghost commented Aug 6, 2020

The same...😡

@jocelynbaduria
Copy link

I have the same error...

Searching for pip
Best match: pip 20.2.2
Adding pip 20.2.2 to easy-install.pth file
Installing pip script to /usr/local/bin
error: [Errno 2] No such file or directory: '/usr/local/bin/pip'

@Tarrin
Copy link

Tarrin commented Dec 7, 2020

A workaround to get pip working again is getting the get-pip.pyhttps://bootstrap.pypa.io/get-pip.py script and running: python get-pip.py pip==19.3.1 This will revert pip to the previous version Thanks! this worked for me (python 3.7.4 running on cygwin64) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#7620?email_source=notifications&email_token=ABHAYIUZZTOF5FQIJBXBHJDRACAGRA5CNFSM4KJSF7MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKERQ6I#issuecomment-579410041>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABHAYIVCAZKVV53U4GXSTBTRACAGRANCNFSM4KJSF7MA. [R Steiger] Thanks, also worked with python3.8.1

Thank you very much!! I know that I need revert pip to the previous version,but there is something wrong with my pip , so I can't use pip install. Your get-pip.py solved my problem!!
Great Thanks!

@bulgarian-beast
Copy link

bulgarian-beast commented Dec 16, 2020

Same with Python 3.7.9

Got :

Traceback (most recent call last):
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 20.3.3 (/usr/local/lib/python3.7/site-packages), Requirement.parse('pip==20.0.2'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/opt/python@3.7/bin/pip3", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 3238, in <module>
    @_call_aside
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 569, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 582, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/Users/sofian/Library/Python/3.7/lib/python/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.0.2' distribution was not found and is required by the application

Fix with :

brew reinstall python

@pradyunsg
Copy link
Member

@bulgarian-beast You're hitting a Homebrew issue: Homebrew/homebrew-core#59802

Run python -m pip uninstall pip and then run python get-pip.py, after downloading get-pip.py from https://bootstrap.pypa.io/get-pip.py

@springerkc

This comment has been minimized.

@NasreenUstad
Copy link

hope it would help someone
https://stackoverflow.com/a/66332322/942239

I was also facing the issue but it resolved

@zakarich
Copy link

zakarich commented May 4, 2021

same here i'm trying to install python3.9 knowing that I have already python3 and 2 i call python2 by running python , python3 to call the second and python3.9 to call the latest. now I want to install the pip for the python3.9 I downloaded it inside the whole package of python3.9 from curl https://bootstrap.pypa.io/get-pip.py​ -o get-pip.py but when I run python3.9 pip-get.py I got this error shown in the figure below:
getpipError

@MZeeshan7474
Copy link

Untitled
i am also facing this problem, plz anybody help me

@NasreenUstad
Copy link

Untitled
i am also facing this problem, plz anybody help me

https://stackoverflow.com/a/66332322/942239

try this, it worked for me

@cuixing158
Copy link

cuixing158 commented Jul 26, 2021

微信截图_20210726150833

These answers are outdated or otherwise wordy and difficult.

The following steps worked for me

If you've got Python 3.4+ or 2.7.9+, it will be installed by default on Windows. Otherwise, in short:

1, Download the pip installer: https://bootstrap.pypa.io/get-pip.py

2, If paranoid, inspect file to confirm it isn't malicious (must b64 decode).

3, Open a console in the download folder as Admin and run get-pip.py.python get-pip.py .

The new binaries pip.exe (and the deprecated easy_install.exe) will be found in the "%ProgramFiles%\PythonXX\Scripts" folder (or similar), which is often not in your PATH variable. I recommend adding it.

py3.4+ should use the following method:
https://stackoverflow.com/questions/4750806/how-can-i-install-pip-on-windows?noredirect=1&lq=1

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests