Can't import installed third-party modules under Python:pycharm?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.