当前位置:网站首页>pycharm 配置远程连接服务器开发环境
pycharm 配置远程连接服务器开发环境
2022-06-22 20:33:00 【猫鱼薄荷_她】
打开 File-settings-python interpreter:





如何查看python安装目录:
Linux 下输入 whereis python
windows下如果配置了环境变量,可以在环境变量中查看,安装python解释器时可以勾选加入环境变量,如果不勾选,默认不会配置环境变量
如果Linux配置了多个python环境,输入 whereis python 会输出很多路径,看起来很不清晰,这个时候可以使用下面的方式:
import sys a = sys.executable print(a) // 经测试在 windows 和 Linux 下都同样适用 sys.path 也同样可以查看,但是他会输出 关于python解释器所有的相关路径,看起来很不清晰 sys.executable解释: 一个字符串,给出Python解释器的可执行二进制文件的绝对路径,在有意义的系统上。 如果Python无法检索其可执行文件的真实路径,sys.executable则将为空字符串或None。打印结果 windows 为例:

打印结果 Ubuntu 为例:
配置完成后,如图:
配置好之后可以从服务器上面下载文件,也可以上传文件:
自己全部完成后可以做一个测试,如在文件增加一些代码并保存,看服务器上面是否发生变化:
在test 文件中打印一句 111
linux 服务器上面:
打工告成,哈哈…
边栏推荐
- 自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
- liunx 安装mysql
- 7-1 前序序列创建二叉树
- There are 15 necessary knowledge points for the second level cost engineer before the exam! I wish you success!
- Share deadlock problems encountered in insert into select (project practice)
- SPA项目开发之CRUD+表单验证
- A hundred lines of code to realize reliable delay queue based on redis
- IDC發布中國數據治理報告 億信華辰第一
- RapidEye快鸟、SPOT卫星遥感影像数据
- Redis核心技术与实战:学习总结目录
猜你喜欢

考生必读篇 | PMP6月25日考试临近,需要注意什么?

KDD'22 | 阿里: 基于EE探索的精排CTR预估

Mask image modeling for self supervised representation pre training: CAE and its relationship with Mae and Beit

注意|24日截止 2022年广东二级造价工程师准考证打印入口开通

Research hotspot - Official publicity! The release time of JCR zoning and impact factors will be determined in 2022!

Système de bibliothèque libre - service - cas de conception complète de l'interface tkinter et du formulaire openpyxl

6-6 图的广度遍历-邻接矩阵实现

Introduce sparse activation mechanism! Uni perceiver MOE significantly improves the performance of generalist model

(duc/ddc) digital up mixing / quadrature down mixing principle and MATLAB simulation
![Jerry's music mode obtains the directory of playing files [chapter]](/img/2f/efb8a077e3e398cb3b14cfd98a8422.png)
Jerry's music mode obtains the directory of playing files [chapter]
随机推荐
【持续更新中...】2021年全国大学生电子设计大赛 (三)匿名四轴拓空者飞控系统设计解读
Why do you think it is common for Chinese people to earn more than 10000 yuan a month?
Kali2021 installing the rtl8188gu wireless network card [tl-wn726n] driver
Quick sort template & considerations
【几何法视觉】4.2 分段线性变换
Summary of differences between localstorage, sessionstorage and cookies
Shell (34): Time
Vs code one key sorting shortcut
(duc/ddc) digital up mixing / quadrature down mixing principle and MATLAB simulation
6月PMP考试准考证问题及注意事项,考生必读
7-1 前序序列创建二叉树
Implementation of breadth traversal adjacency matrix of 6-6 graph
Self service library system Tkinter interface and openpyxl form comprehensive design case
Jericho uses DP and DM for IO key detection [chapter]
Redis核心技术与实战:学习总结目录
LeetCode#20. Valid parentheses
为什么感觉中国人月薪过万已经很普遍了?
List of outstanding talents: no crystal vibration, one drag, eight burn and upgrade [chapter]
[icml2022] using virtual nodes to promote graph structure learning
Home page navigation + left menu of spa project development