configure server
-
Open pycharm and find Tools–>Deployment–>Configuration
-
Enter the configuration page, click the plus sign in the upper left corner, and select SFTP
-
An input box will pop up, enter your customized server name.
-
Click the omit option after ssh configuration
-
Enter the server configuration page.
If the connection is successful, click Apply, then click OK. -
Set the project mapping
and click OK. The server will be configured. -
Select the server we just configured for the project, click "No default server" in the lower right corner of the page, and then the server "image" we configured above will appear, select
Configure the python interpreter
After the server is configured, you need to set up the corresponding server python environment for the project, which is what we call the python interpreter.
-
Click File–>Settings to open the settings interface
-
Find the python interpreter under the project
-
Find Add Interpreter and select SSH
-
Select existing, then select configuration. There will be server options we configured before, select and next step.
-
Next step
-
Configure python environment
-
Click Apply and OK, our interpreter is set up.
Then, we can run our own project locally on the server. -
code update