PyCharm
 
Get PyCharm

Configuring PyCharm to Work on the VM

Last modified: 28 June 2024

Consider the situation when you work on your project on one platform, but want to deploy and run it on a different one. This is where PyCharm helps a lot with its extensive support for remote interpreters.

The task of running a project on a virtual machine falls into several major steps:

  • First, you need to define a virtual box.

  • Second, you need to configure a remote interpreter to run in this virtual box.

  • Finally, you need to launch your script in the remote console.

Before you start, make sure that outside of PyCharm you have already done the following:

  • Installed Oracle's Virtual Box.

  • Installed Vagrant.

  • Added the following executables to your system path:

    • vagrant.bat from your Vagrant installation. This should be done automatically by the installer.

    • VBoxManage.exe from your Oracle's VirtualBox installation.