pyCharm is set to connect to the Python environment on linux for local development.

First, you need to deploy the python environment to your linux server.
After the deployment is successful, open pyCharm and configure it according to the following graphics and text.
Insert picture description here
Insert picture description here
Insert picture description here
Enter the server account password, and the environment variables of your server Python.
Insert picture description here
Insert picture description here
After successfully adding, create a project. Note that you need to create a directory with the same name as the project on Linux and
enter the settings search deployment set
Insert picture description here

After setting up, create a new py file and
run print("hello world")
Insert picture description here
if there is an imported package, you need to update the local code to your server, and then run
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_14920377/article/details/86493551