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
  kmeans install error (please help me) muratuzun 3 474 May-06-2022, 02:14 PM
Last Post: snippsat
  Cryptic Error with import statement Led_Zeppelin 2 721 Jan-11-2022, 01:13 PM
Last Post: Led_Zeppelin
  Anaconda pip install mpyc Error pip-script.py is not present Anldra12 2 2,065 Dec-13-2021, 06:59 PM
Last Post: Anldra12
  Can't install nor import delorean module Tek 3 1,176 Oct-27-2021, 03:32 AM
Last Post: Tek
  Minecraft Python install error SomeAcandKid 1 1,011 Oct-06-2021, 06:27 PM
Last Post: Ronhamas
  Installed pip install openpyxl, Requirement already satisfied, but, still have error jonah88888 3 2,803 Sep-24-2021, 02:11 AM
Last Post: jonah88888
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 1,546 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  import module with syntax error Skaperen 7 2,091 Jun-22-2021, 10:38 AM
Last Post: Skaperen
  Error about parser library and tree builder Led_Zeppelin 8 3,766 Jun-11-2021, 08:53 PM
Last Post: snippsat
  Import Error Christian 3 1,878 Apr-17-2021, 11:27 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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