Python Cross Platform Development Enviroment Setup

My cross platform python development enviroment setup on Windows.

Features

  • ✓ Linux Fridenly
  • ✓ No Changes To Native System
  • ✓ Stable
  • ✓ Remote Debug

Alought Windows is the supported system for python programming language, but we have to admit that it is not a good choice for development.

Tool Chain

System: Windows 10 x64
Softwares: VirtualBox, Vagrant, Ubuntu 16.04, Python 3, Cmder, zsh, oh-my-zsh, PyCharm Professional

Notes

  1. When I write this article, Ubuntu 16.04 is the latest version, it may be not when you see this article. So, if you think you are young and hip use the latest version.
  2. PyCharm Professional is required, community version lacks the important function of remote dubug.
  3. If your local network has a really slow speed when you accessing Ubuntu’s software server(like China), you may need change the source of apt. I changed my source to USTC mirrors.

Steps

  1. Google, download and install every software metioned above.
  2. Boot PyCharm, and config the remote debug via this article from JetBrain
  3. Read the article follow this path
    -> Using a remote interpreter
    -> Make sure that a remote interpreter is configured
    -> Configuring Remote Interpreters via Vagrant
  4. create new python project in the folder of Vagrant, make sure the Linux filesytem can find your file.

Known Issues

When you debug apps in the PyCharm integrated terminal, your input info will show twice.