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.
Installing any library using pip install gmpy2 return me an error
Traceback (most recent call last): File "d:\python3.8.0\python\lib\", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\python3.8.0\python\lib\", line 87, in _run_code exec(code, run_globals) File "D:\Python3.8.0\Python\Scripts\pip.exe\", line 4, in <module> File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\", 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\", line 7, in <module> from pip._internal.cli import cmdoptions File "d:\python3.8.0\python\lib\site-packages\pip\_internal\cli\", 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\", line 12, in <module> from pip._internal.utils.logging import get_indentation File "d:\python3.8.0\python\lib\site-packages\pip\_internal\utils\", line 18, in <module> from pip._internal.utils.misc import ensure_dir File "d:\python3.8.0\python\lib\site-packages\pip\_internal\utils\", line 31, in <module> from pip._internal.locations import ( File "d:\python3.8.0\python\lib\site-packages\pip\_internal\locations\", 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\
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
@ snippsat Thanks solved It is systematic however I understand the main problem.

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

Forum Jump:

User Panel Messages

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