当前位置:网站首页>Pychart connects to the remote server
Pychart connects to the remote server
2022-07-02 14:20:00 【Dear_ Forest】
because linux Cannot be used directly on the server pycharm, So the solution is to use windows Installed pycharm Remote Links linux The server .
Steps are as follows :
1、pycharm The toolbar :Tools–>Deployment–>Configuration
2、 top left corner : Click on + plus –>SFTP( This is the best choice )
3、 Name the link ( Customize )
4、 Select the new connection –>Connection–> enter server 、 login information –>Test connection, Test whether the connection is successful .
After successful connection , The following window will pop up , Otherwise, it will be other information
5、 In the upper window : Click on –>Mappings, After setting the working directory path , Click ok
6、 Now you can upload and download files ( You cannot run the code at this time , Because the interpreter environment has not been configured – See step 7)
7、 Configuration interpreter
To run the code , You also need to configure python( According to your own language ) Interpreter environment :
File–>Settings
Project:…–>Project Interpreter -->Add
SSH Interpreter–> Enter the server address , Port number , user name –>next
Input password –>next
Select the interpreter directory , Click Finish .
It is better to choose the interpreter directory under the virtual environment on the server Python Installation address
Use... On the server conda env list View the address of the existing virtual environment , Select the virtual environment for the project
Select the interpreter directory :
8、 Check whether it can run successfully
Can pass os, See if you can browse the file directory on the server
import osos.listdir(‘/home/user/localproject/project’) # Just enter a directory of your server files
If the output file list is the file on your server , Then the configuration is completed .
9、 Other instructions :
1)、 After setting the local working directory and automatic uploading , The file will be automatically uploaded to the current ( Set up the project of server interpreter ) To the set directory .
Then operate the local file ( rename 、 Modify and write code 、 Delete file ), The server will also synchronously modify . But these must be guaranteed to be in pycharm Inside operation . If it's in windows If it is operated inside , It won't automatically synchronize .
The details of the synchronization log can be found in File Transfer Seen inside
2)、 The generated files will be saved in the server directory , You need to download it manually from the server
边栏推荐
- [deep learning] simple implementation of neural network forward propagation
- Route (II)
- [Hongke technology sharing] how to test DNS server: DNS performance and response time test
- Selenium installing selenium in pycharm
- 瀏覽器驅動的下載
- 跨服务器数据访问的创建链接服务器方法
- Essential elements of science fiction 3D scenes - City
- Systemserver process
- Yolov3 & yolov5 output result description
- 线性dp求解 最长子序列 —— 小题三则
猜你喜欢
全屋Wi-Fi:一个谁也解决不好的痛点?
[deep learning] simple implementation of neural network forward propagation
Selenium installing selenium in pycharm
浏览器驱动的下载
Qt新项目_MyNotepad++
The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022
The most complete analysis of Flink frame window function
2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect
<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
The global special paper revenue in 2021 was about $27 million, and it is expected to reach $35 million in 2028. From 2022 to 2028, the CAGR was 3.8%
随机推荐
Characteristics of selenium
The most complete analysis of Flink frame window function
如何设置Qt手工布局
Daily learning 2
QT new project
Story point vs. Human Sky
Word frequency statistics & sorting
自定义事件,全局事件总线,消息订阅与发布,$nextTick
QT how to set fixed size
Qt原代码基本知识
Go operation redis
SystemServer进程
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
Codeforces Round #803 (Div. 2)(A~D)
Data Lake (11): Iceberg table data organization and query
[Hongke technology sharing] how to test DNS server: DNS performance and response time test
Common options of tcpdump command: Three
BeanUtils -- shallow copy -- example / principle
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
Pycharm连接远程服务器