Python's Pycharm cannot import package problem record

Solve the problem that the cmd can be imported. After pycharm imports the tensorflow package, it fails to import and reports an error, and the object name cannot be found.

Create a new project, pip is loaded successfully, but the package name cannot be found

The tensorflow package was imported after pip, pycharm could not be imported, and the object name could not be found

The solution can be imported in cmd, but the package cannot be found in pycharm

After pycharm imports the tensorflow package, it cannot be imported and the object name cannot be found.

Add the installation path of python to the project.
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/tandelin/article/details/105015886