I just started working with Python. Tried several ide's, and am not settling on Pyzo.
I have a serious problem with PIP. Whatever PIP command I use, I get an error like this:
Can anyone of you help?
Kind regards
Hubert
I have a serious problem with PIP. Whatever PIP command I use, I get an error like this:
Error:>>> pip list
Traceback (most recent call last):
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", line 12, in <module>
from http.client import HTTPConnection as _HTTPConnection
File "C:\Users\hmd\Desktop\Python\http.py", line 3, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\__init__.py", line 27, in <module>
from . import urllib3
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\urllib3\__init__.py", line 8, in <module>
from .connectionpool import (
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 35, in <module>
from .connection import (
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", line 15, in <module>
from httplib import HTTPConnection as _HTTPConnection
ModuleNotFoundError: No module named 'httplib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "c:\program files\lib\runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "c:\program files\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "c:\program files\lib\site-packages\pip\__init__.py", line 16, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "c:\program files\lib\site-packages\pip\vcs\mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "c:\program files\lib\site-packages\pip\download.py", line 39, in <module>
from pip._vendor import requests, six
File "c:\program files\lib\site-packages\pip\_vendor\requests\__init__.py", line 64, in <module>
from . import utils
File "c:\program files\lib\site-packages\pip\_vendor\requests\utils.py", line 24, in <module>
from .compat import parse_http_list as _parse_list_header
File "c:\program files\lib\site-packages\pip\_vendor\requests\compat.py", line 7, in <module>
from .packages import chardet
File "c:\program files\lib\site-packages\pip\_vendor\requests\packages\__init__.py", line 29, in <module>
import urllib3
ModuleNotFoundError: No module named 'urllib3'
I have uninstalled Python and installed it again, but the error remains. On the web I found many people having similar problems, but I have not been able to find the solution.Can anyone of you help?
Kind regards
Hubert