G
G
graph zero2018-04-20 07:57:27
Python
graph zero, 2018-04-20 07:57:27

How to fix module import error: No module named 'urllib3'?

I import into python 3.6.5 module requests 2.18.4
PyCharm responds

Traceback (most recent call last):
  File "D:/*/python/*.py", line 1, in <module>
    import requests
  File "C:\Python36-32\Lib\requests\__init__.py", line 43, in <module>
    import urllib3
ModuleNotFoundError: No module named 'urllib3'

The urllib module is installed in version 1.22. The script is executed on the command line.
Perhaps it's in PyCharm? How to solve the problem? (links to documentation are welcome)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svezhka, 2018-04-20
@Svezhka

The version installed in PATH differs from the PyCharm interpreter - either urllib must be put in the python specified in the IDE, or the same python must be specified for the project, which is wired in PATH (it’s more logical, most likely the default python is specified in the PC), urllib is there apparently there is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question