Pycharm cannot auto import solution _pycharm cannot auto import package troubleshooting

Source: Internet
Author: User

I originally used Eclipse+pydev to learn python, in fact, I also feel very useful. But later because the colleague recommended to try the next pycharm, it is out of love.

Strictly speaking, the problem on the topic is not a problem for a lot of people, but according to personal experience, I am afraid that the same as my wild self-taught children really may not know, so special mention.

Problem phenomenon:

When you edit code in Pycharm, you cannot intelligently prompt for import if you enter a method for a package that is not imported, which is built-in or installed locally.

Problem Analysis:

At first I thought it was because the replacement keymap caused the shortcut key conflict, but checked setting found no problem. Later through the network search lookup, only found that there is no configuration Pycharm interpreter. (At this time the heart is a collapse, in fact, a lot of self-scholars in the footsteps of the original is even very simple environment configuration, can be countless examples, after writing a special article to talk about personal experience. )

Problem solving:

1. First of all, you have installed Python2 or Python3 environment.

2. Open Pycharm-->preference-->project-->project Interpreter

3. If your Python environment does not have any other problems, then some of the points in the red box will have a corresponding path to choose from, such as I am here (Python 2.7.10).

4. Click Apply to make the settings effective.

Once this is done, your pycharm will be able to encode the normal auto import.

Ps:linux under a wingide is also a python development tool, we can also try to free.

Pycharm cannot auto import solution _pycharm cannot auto import package troubleshooting

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.