"pip" error message

Simone Bravin simone.bravin at outlook.com
Mon Apr 20 06:24:54 EDT 2020


Hello everyone,

> I just started using Python to learn a bit of coding, so I'm pretty a 
> newbie to this, I tried to install few extra packages using pip but it 
> doesn't work.
>
> When I check for pip version using command line> pip --version I get 
> the following error message:
>
> Traceback (most recent call last):
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", 
> line 193, in _run_module_as_main
>     return _run_code(code, main_globals, None,
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", 
> line 86, in _run_code
>     exec(code, run_globals)
>   File 
> "C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", 
> line 5, in <module>
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", 
> line 40, in <module>
>     from pip._internal.cli.autocompletion import autocomplete
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", 
> line 8, in <module>
>     from pip._internal.cli.main_parser import create_main_parser
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", 
> line 7, in <module>
>     from pip._internal.cli import cmdoptions
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", 
> line 24, in <module>
>     from pip._internal.models.search_scope import SearchScope
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", 
> line 11, in <module>
>     from pip._internal.utils.misc import normalize_path, 
> redact_password_from_url
>   File 
> "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", 
> line 31, in <module>
> *from pip import __version__ *
> *ImportError: cannot import name '__version__' from 'pip' 
> (c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)*
>
> I tried to run Repair in Modify Setup and reinstalled python as well 
> but nothing changed.
>
> I was wondering if you can help to fix this.
>
> Thank you
>
> Simone 


More information about the Python-list mailing list