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