在IDEA中建立了一个Python项目,结果导入包时,发现需要自己安装包。具体的问题如下图所示:
The shortcut is:
- Click the red line with the mouse and stay there, or click the red line and press Alt+Enter, you can see the picture below: You
can install it through this shortcut.
Manual mode (shortcut key: Alt+Ctrl+Shift+S)
- Click on File, select Project Structure
- After entering, select SDKs, select Packages, and click +
- Enter the name of the package you want to install, select the corresponding package, the version can be selected or not (the latest version is installed by default)
- Finally click INSTALL PACKAGE, the corresponding package will be downloaded and installed
The successful effect is as follows: