Python Forum
Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip.
#1
Installing any library using pip install gmpy2 return me an error
Error:
Traceback (most recent call last): File "d:\python3.8.0\python\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\python3.8.0\python\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Python3.8.0\Python\Scripts\pip.exe\__main__.py", line 4, in <module> File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in <module> from pip._internal.cli.progress_bars import BAR_TYPES File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\progress_bars.py", line 12, in <module> from pip._internal.utils.logging import get_indentation File "d:\python3.8.0\python\lib\site-packages\pip\_internal\utils\logging.py", line 18, in <module> from pip._internal.utils.misc import ensure_dir File "d:\python3.8.0\python\lib\site-packages\pip\_internal\utils\misc.py", line 31, in <module> from pip._internal.locations import ( File "d:\python3.8.0\python\lib\site-packages\pip\_internal\locations\__init__.py", line 9, in <module> from pip._internal.models.scheme import SCHEME_KEYS, Scheme ImportError: cannot import name 'SCHEME_KEYS' from 'pip._internal.models.scheme' (d:\python3.8.0\python\lib\site-packages\pip\_internal\models\scheme.py)
Reply
#2
There something wrong with pip,try upgrade first.
python -m pip install --upgrade pip
If that dos not work try to force reinstall of pip.
python -m pip install --upgrade --force-reinstall pip
Gribouillis likes this post
Reply
#3
@ snippsat Thanks solved It is systematic however I understand the main problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Install error middlestudent 1 215 Sep-23-2023, 08:26 AM
Last Post: middlestudent
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 888 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  Error in blend_modes library talgreen 6 501 Jul-01-2023, 05:32 PM
Last Post: talgreen
  wxPython install error carlomscalisi 3 2,640 Jan-17-2023, 11:04 AM
Last Post: snippsat
  python requests library .JSON() error mHosseinDS86 6 1,630 Dec-19-2022, 08:28 PM
Last Post: deanhystad
  import module error tantony 5 2,556 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Error with pip install coffeeguy 1 1,291 Sep-08-2022, 01:27 AM
Last Post: snippsat
  kmeans install error (please help me) muratuzun 3 3,873 May-06-2022, 02:14 PM
Last Post: snippsat
  Cryptic Error with import statement Led_Zeppelin 2 1,944 Jan-11-2022, 01:13 PM
Last Post: Led_Zeppelin
  Anaconda pip install mpyc Error pip-script.py is not present Anldra12 2 6,481 Dec-13-2021, 06:59 PM
Last Post: Anldra12

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020