windows PyCharm远程同步Linux服务器上的项目文件,以及远程连接Linux服务器上的python环境
发布时间:2024年01月17日
(1)上传项目文件到Linux服务器和前置说明
(1-1)本地项目文件地址:D:\Python_Work\XXX
(1-2)阿里云服务器项目文件地址:/home/XXX
(1-3)Pycharm必须是专业版,否则不能连接
(2)同步设置
(2-1)菜单栏 ==》Tools ==》 Deployment ==》 Configuration...

(2-2) 新添加一个远程连接




(2-3)选择本地文件和远程Linux服务器上文件,选择完成之后,点击【OK】键

(3)本地主机PyCharm连接远程Linux服务器上的Python环境
(3-1)新建一个ssh连接





(3-2)定位远程服务器上python环境的具体路径。
本人在服务器上使用miniconda来创建隔离python环境,具体操作可见安装文档说明

(3-3)创建成功,会看到远程服务器上python环境的地址和当前已经安装得的库文件。

文章来源:https://blog.csdn.net/IT_ZB/article/details/135655494
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!