【PyCharm】配置本地环境,并连接至服务器 / GitHub
配置本地环境
1,file -> open: 打开一个本地环境/文件夹

2,file -> settings -> Project:xxxx -> Python Interpreter: 配置本地环境的解释器

3,Python Interpreter ⚙ -> add: 添加解释器

4,Conda Environment -> Existing environment -> Interpreter -> ...

5,miniconda3 -> envs -> xxxx (环境名称) -> python.exe -> OK

连接 Linux
1,Tools -> Deployment -> Configuration

2,左上角 + -> SFTP

3,New server name: 随便起个名字

4,SSH Configurations


5,Local Path 本地文件路径;Deployment Patn 服务器文件路径

6,Excluded Paths:添加数据集的路径,这样本地不用下载数据集就能进行调用

7,同步操作

配置远程解释器
1, PyCharm -> Preferences

2, SSH Interpreter -> New / Existing server configuration

3, Interpreter

4, Sync folders

连接 GitHub
1,File -> Settings -> Version Control -> Github -> +


2,选择 Git 安装路径(需要提前安装Git)

3,同步操作
参见:https://www.cnblogs.com/zhaoyingjie/p/6266011.html
参考资料
https://blog.csdn.net/feilong_csdn/article/details/90677099
https://www.jb51.net/article/202730.htm
浙公网安备 33010602011771号