Pycharm cannot import the installed third-party module requests?
After using PIP to install the requests module under CMD, you can use the import requests, but cannot import under the Pycharm IDE, the following error appears:
>>> Import Requeststraceback (most recent): File ' <input> ', line 1, in <module> Fi Le "C:\Program Files (x86) \jetbrains\pycharm Community Edition 2016.2\helpers\pydev\_pydev_bundle\pydev_import_ hook.py ", line, in do_import module = self._system_import (name, *args, **kwargs) importerror:no module named Reques Ts
Reason: The computer installed both Python2.7 and Python3.5, only in Python3.5 under the requests module, and did not install under the Python2.7.
Solve:
Adjust Pycharm settings: Settings-->project:python-->project interpreter change it to Python3.5.
Can't import installed third-party modules under Python:pycharm?