XXX platform rental? One trick. Python interactive programming between Windows and Linux

Source: Internet
Author: User

Most recently encountered projects are mostly multi-language with Python mixed programming xxx platform rental? (www.1159880099.com) QQ1159880099 Tel17061863533 Source Trading, source development, technology transactions, focus on providing enterprises, individuals with personalized customized solutions, more efficient and convenient for the majority of the needs of people to solve a variety of practical needs of the problem, To provide you with the latest, hottest, most hands-on source resources.
, C, C + +, Python and other languages of the compilation environment Linux provided very good, but the Linux virtual machine does not have a visual IDE, it is not easy to debug, although there are various good IDE under Windows, but to successfully run the above language code will have to configure a lot of things, is also very disturbing. So is there any way to write Python code on Windows that runs on Linux? This kind of problem is also in the process of team cooperation development project, then we need to connect the Linux server to program remotely.

Pycharm is a cross-platform editor developed by JetBrains Corporation. If you were developing in a Windows environment, you would immediately recognize JetBrains, the company that developed Resharper.

Pycharm supports both Windows and Linux, and the Pycharm website or search in both environments is detailed in this article, which focuses on how Python can be run on Linux, while code writing and debugging runs on Windows Pycharm.

Article guide

1-Installation Environment preparation

2-WIN10 under Installation Pycharm

Remote connection to Linux programming

First, installation environment

1, Win10 X64 (Installation of pycharm environment)

2. Ubuntu (Linux virtual machine environment running Python code)

3. Pycharm version:

 pycharm-professional-2018.1.2

Second, Win10 under the installation of Pycharm

1. Download the installation package

Pycharm official website Download Pycharm installation package

2. Install the Software

(1) Double-click the installation package to install it.

(2) Custom software Installation path (no Chinese characters in recommended path)

(3) Create a desktop shortcut

(4) Select the Start Menu folder (default), click Install

(5) Waiting patiently for installation

(6) Complete installation, tick run now Pycharm

(7) Choose whether to import the development environment configuration file, we choose not to import

(8) Select input Activation code to activate the software

PS: Select License Server activation, then fill in: http://im.js.cn:8888 or http://idea.java.sx/or Http://xidea.online, then click Activate to activate, It may also fail to activate. "The number of people who are activated is easily blocked, so you may need to activate it often."

(9) Create a new project

Third, remote connection programming

View your virtual machine IP address, connect to the server (virtual machine) using the Xshell (SSH protocol), and connect to the server (virtual machine) using the Pycharm (SFTP protocol).

1. View the virtual machine IP address on the Xshell.

2. Create a project workspace on a virtual machine untitled

3. Configure the remote server on Pycharm

4. Add a new connection, set the connection name and the type of protocol used

5, set the host IP address, workspace (previously created), login information

6. Browse Remote virtual machine

7, create a new file on the virtual machine helloworld.py, and write code, and then click on the upper right corner of the editing area to update the code to the server

8. Set permissions for files and add Execute permissions

9. Execute script file in virtual machine using Xshell

See "Hello world! "That means it's finally done!" Hey, I screw low, only to find a way to resolve this embarrassing tool problem!

XXX platform rental? One trick. Python interactive programming between Windows and Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.