网络编程
位置:首页>> 网络编程>> Python编程>> Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

作者:DrogoKhal4373  发布时间:2021-05-13 07:42:11 

标签:Pycharm,python,linux,服务器

1.首先在Pycharm Tools->Deployment->Configurations打开

新建SFTP输入host: ip地址username密码然后点击Test Connection出现下图,则测试成功

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

因为已经连接成功,这时候已经可以读取远程服务器的目录了:

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

2.选择项目mapping (可以跳过

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

3. 在Setting->Project:Intepreter中选择SSH Intepreter

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

选择Move this server to IDE settings,这样将这个intepreter对所有人都可见。

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

选择在远程的anaconda中的LSP子环境的bin中的python作为intepreter,这样可以使用在LSP中的拓展包。

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

看情况勾选 Execute code with root privileges,因为我的interpreter装在这个用户下,且我没有root用户的密码,因此我不勾选

Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

加载完毕就可以看到远程的packages了。Apply之后会加载一段时间,这是mapping到本地的情况。

4.环境测试!

然后就可以在本地,使用远程环境运行程序来搞事了!


Pycharm使用远程linux服务器conda/python环境在本地运行的方法(图解))

需要注意

每次写完代码都记得要upload文件,当然也可以使用auto synchronize

总结

以上所述是小编给大家介绍的Pycharm使用远程linux服务器conda/python环境在本地运行的方法网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

来源:https://blog.csdn.net/weixin_40400177/article/details/103414914

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com