安装第三方库:
File -> Setting -> Project:项目名 -> project Interpreter
点下面窗格,点右边+号
配置远程解释器:
File -> Setting -> Project:项目名 -> project Interpreter -> 右边齿轮 -> SSH Credentials
虚拟环境路径:
/home/用户名/.virtualenvs/虚拟环境名/bin/python3
配置远程部署:
Tools -> Deployment -> Configration -> +号新建配置 -> Connection的Type选择 SFTP -> SFTP的host和port输入SSH配置,Root path输入远端路径
Mappings中,Local path 为本地路径,Deployment path为相对于Root path的远端路径
自动远程部署:
Tools -> Deployment -> Options ,Upload changed files automatically to the default server选择On explicit save action (Ctrl + S),勾选Upload external changes
手动远程部署:
Tools -> Deployment -> Options ,Upload changed files automatically to the default server选择Never
Tools -> Deployment -> Upload to Default Server
快速打开SSH窗口:
Tools -> Start SSH session