🌐
Reddit
reddit.com › r/learnpython › should i download python on a virtual environment
r/learnpython on Reddit: Should i download python on a Virtual Environment
July 7, 2023 -

I'm new to python (coding in general).

Just looked up how to download python and he was saying to download it on a virtual environment

is it any better or should i download it the normal way?

(I have zero knowledge about this stuff btw)

Top answer
1 of 3
4
A Python virtual environment is created using an already installed version of Python which is copied to a new folder of your choosing. See my notes below. Python Setup Setting up a Python environment can be confusing. There are web based offerings that can be used instead, such as replit.com. You might also come across Jupyter Notebook options, which can seem very easy to work but have some issues to be aware of. Pre-installed system Python Some operating system environments come with a version of Python pre-installed. For many years, macOS included an installation of python 2.7. (Now has a more recent version.) This is known as the system version of Python. There may be python code used for utility purposes on your system that depend on this version of python. You can still install your own version. Installing Python There are multiple ways of installing Python using a package manager for your OS, e.g. homebrew (macOS third party), chocolatey (Windows third party) or winget (Windows standard package manager), apt (many linux distributions) or using the Python Software Foundation (PSF) installer from python.org or some kind of app store for your operating system. You could also use docker containers with Python install inside them. PSF offer the reference implementation of Python, known as CPython (written in C and Python). The executable on your system will be called python (python.exe on Windows). Beginners are probably best served using the PSF installer. Terminal / Console For most purposes, terminal is the same as console. It is the text based, rather than graphical based, window / screen you work in. Your operating system will offer a command or terminal environment. Python by default outputs to a terminal and reads user input from a terminal. Libraries / Frameworks / Packages Python comes with many batteries included in the form of libraries of code providing more specialist functionality. Already installed as part of a standard installation of Python (the CPython reference implementation of Python, written in C and Python, from the Python Software Foundation at python.org). These libraries are not automatically loaded into memory every time you start a Python running as that would use a lot of memory up and slow down start up time. Instead, you use, in your code, the command import , e.g. import math print(math.pi) There are thousands of additional packages / libraries / frameworks available that don't come as standard with an installation of Python that you have to install yourself. Quality, support (and safety) varies. That's where the package manager pip comes in. It uses an official repository of such additional code that it searches for a match to what you ask to be installed. For example, using a command / powershell / terminal environment for your operating system, pip install numpy would install the numpy library from the pypi respository. There is a complication here. Typically, on macOS or most linux systems, you would say, pip3 install numpy or alternatively, python3 -m pip install numpy This is because python often refers to the now unsupported older version 2.x of Python and for years we lived with both 2.x and 3.x. On Windows, you will often see py used instead, py -m pip install numpy where py refers to the python launcher which should invoke the most up-to-date version of Python installed on your system regardless of PATH settings. Some Code Editors and IDEs (Integrated Development Environments), such as VS Code and PyCharm, include their own facilities to install packages using pip or some other tool. This just saves you typing the commands. They also often offering their own terminal window(s). Running Python The CPython programme can be invoked for two different purposes: to attempt to execute a simple text file of python code (typically the files have an extension of .py to enter an interactive shell, with a >>> prompt, where you can enter python commands and get instant responses - great for trying things out So, entering the below, as appropriate for your operating system, python python3 py on its own, no file name after it, you will enter an interactive session. Enter exit() to return to the operating system command line IDLE Editor A standard installation from python.org for Windows or macOS includes a programme called IDLE. This is a simple code editor and execution environment. By default, when you first open it, it opens a single window with a Python shell, with the >>> prompt already open. To create a new text file to enter Python code into, you need to use your operating system means of access the standard menu and select File | New. Once you've entered code, press F5 to attempt to run the code (you will be prompted to save the file first). This is really the easiest editor to use to begin with. Virtual Environments Given the thousands of packages (libraries, frameworks, etc) out there, you can see that if you are working on several different projects, you can end up installing a vast range of different packages, only a few of which will be used for any particular project. This is where Python virtual environments come in. Not to be confused with virtual machines. Typically created on a project-by-project basis. Install only the packages required for a project. This helps avoid conflicts between packages, especially version complications. Most popular code editors and IDEs, including Microsoft's VS Code and Jetbrain's PyCharm, offer built-in features to help to start off new projects and create and activate Python virtual environments. You can create a new Python virtual environment from your operating system command line environment using, for Windows, py -m venv venv or, for macOS / linux, python3 -m venv venv which creates a new folder in the current working directory called venv (taken from the last argument, you can use a different name). You then activate using, for Windows, venv\Scripts\activate or, for macOS / linux, source venv/bin/activate the command deactivate for any plaform will deactive the virtual environment and return you to using the base environment.
2 of 3
1
I think you're confusing virtual environments for virtual machines. That's understandable, they sound similar, but they couldn't be much different. A virtual environment is really just some folder you tell Python to use for dependencies instead of installing packages globally. A virtual machine is a sandbox where you can install a supported operating system without it affecting the main system.
🌐
Rensselaer Polytechnic Institute
cs.rpi.edu › ~sibel › csci1100 › fall2015 › python_environment › vm_install.html
Download And Install The Virtual Machine — Computer Science 1 - Fall 2015 3.0 documentation
We’ll be installing a Virtual Machine that has Linux Mint that can run on whatever system you happen to currently be running. This Virtual Machine already has all of the software and modules that you’ll need for the class. You must first download the Virtual Box environment from:
Discussions

Best VM/OS to use to get started playing with Python?
How about Levinux Qemu virtual machine running small linux distro with python? Levinux (download ~20 MB) is a tiny virtual Linux server that runs from USB or Dropbox with a double-click (no install or admin rights required) on Macs, Windows or Linux PCs—making it the perfect learning environment, and way to run & keep your code safe for life! Think of it as an introduction to old-skool “short stack” development—more relevant now then ever as Linux/Unix gets embedded into everything. More on reddit.com
🌐 r/Python
24
4
April 24, 2014
is there any way to get a Virtual machine where I can run my python code, turn off my computer and get result after few hours?
Of course you can. You'll have to sign up to use some kind of cloud computing service like AWS, GCP, Azure, Linode, Vultr, DigitalOcean, Heroku, etc. Almost all of these have some kind of free trial or free tier of service too, so you can try it out or do small workloads without incurring fees. Just make sure to turn off (or delete in some cases) your resources after you are done using them or you can rack up charges without realizing. More on reddit.com
🌐 r/datascience
42
70
November 23, 2022
Can someone explain the interaction between Python Virtual Machine and running the Python command in the terminal?
There is no "Python Virtual Machine", really. The python executable contains a bytecode compiler and a bytecode interpreter, but those are an implementation detail - you can have a Python implementation that compiles your code ahead of time, like Nuitka, or one using JIT compilation, like PyPy, or one that does not compile anything at all, like MicroPython. More on reddit.com
🌐 r/learnpython
16
12
April 11, 2022
Should i download python on a Virtual Environment
A Python virtual environment is created using an already installed version of Python which is copied to a new folder of your choosing. See my notes below. Python Setup Setting up a Python environment can be confusing. There are web based offerings that can be used instead, such as replit.com. You might also come across Jupyter Notebook options, which can seem very easy to work but have some issues to be aware of. Pre-installed system Python Some operating system environments come with a version of Python pre-installed. For many years, macOS included an installation of python 2.7. (Now has a more recent version.) This is known as the system version of Python. There may be python code used for utility purposes on your system that depend on this version of python. You can still install your own version. Installing Python There are multiple ways of installing Python using a package manager for your OS, e.g. homebrew (macOS third party), chocolatey (Windows third party) or winget (Windows standard package manager), apt (many linux distributions) or using the Python Software Foundation (PSF) installer from python.org or some kind of app store for your operating system. You could also use docker containers with Python install inside them. PSF offer the reference implementation of Python, known as CPython (written in C and Python). The executable on your system will be called python (python.exe on Windows). Beginners are probably best served using the PSF installer. Terminal / Console For most purposes, terminal is the same as console. It is the text based, rather than graphical based, window / screen you work in. Your operating system will offer a command or terminal environment. Python by default outputs to a terminal and reads user input from a terminal. Libraries / Frameworks / Packages Python comes with many batteries included in the form of libraries of code providing more specialist functionality. Already installed as part of a standard installation of Python (the CPython reference implementation of Python, written in C and Python, from the Python Software Foundation at python.org). These libraries are not automatically loaded into memory every time you start a Python running as that would use a lot of memory up and slow down start up time. Instead, you use, in your code, the command import , e.g. import math print(math.pi) There are thousands of additional packages / libraries / frameworks available that don't come as standard with an installation of Python that you have to install yourself. Quality, support (and safety) varies. That's where the package manager pip comes in. It uses an official repository of such additional code that it searches for a match to what you ask to be installed. For example, using a command / powershell / terminal environment for your operating system, pip install numpy would install the numpy library from the pypi respository. There is a complication here. Typically, on macOS or most linux systems, you would say, pip3 install numpy or alternatively, python3 -m pip install numpy This is because python often refers to the now unsupported older version 2.x of Python and for years we lived with both 2.x and 3.x. On Windows, you will often see py used instead, py -m pip install numpy where py refers to the python launcher which should invoke the most up-to-date version of Python installed on your system regardless of PATH settings. Some Code Editors and IDEs (Integrated Development Environments), such as VS Code and PyCharm, include their own facilities to install packages using pip or some other tool. This just saves you typing the commands. They also often offering their own terminal window(s). Running Python The CPython programme can be invoked for two different purposes: to attempt to execute a simple text file of python code (typically the files have an extension of .py to enter an interactive shell, with a >>> prompt, where you can enter python commands and get instant responses - great for trying things out So, entering the below, as appropriate for your operating system, python python3 py on its own, no file name after it, you will enter an interactive session. Enter exit() to return to the operating system command line IDLE Editor A standard installation from python.org for Windows or macOS includes a programme called IDLE. This is a simple code editor and execution environment. By default, when you first open it, it opens a single window with a Python shell, with the >>> prompt already open. To create a new text file to enter Python code into, you need to use your operating system means of access the standard menu and select File | New. Once you've entered code, press F5 to attempt to run the code (you will be prompted to save the file first). This is really the easiest editor to use to begin with. Virtual Environments Given the thousands of packages (libraries, frameworks, etc) out there, you can see that if you are working on several different projects, you can end up installing a vast range of different packages, only a few of which will be used for any particular project. This is where Python virtual environments come in. Not to be confused with virtual machines. Typically created on a project-by-project basis. Install only the packages required for a project. This helps avoid conflicts between packages, especially version complications. Most popular code editors and IDEs, including Microsoft's VS Code and Jetbrain's PyCharm, offer built-in features to help to start off new projects and create and activate Python virtual environments. You can create a new Python virtual environment from your operating system command line environment using, for Windows, py -m venv venv or, for macOS / linux, python3 -m venv venv which creates a new folder in the current working directory called venv (taken from the last argument, you can use a different name). You then activate using, for Windows, venv\Scripts\activate or, for macOS / linux, source venv/bin/activate the command deactivate for any plaform will deactive the virtual environment and return you to using the base environment. More on reddit.com
🌐 r/learnpython
5
2
July 7, 2023
🌐
PyPI
pypi.org › project › virtualmachine
virtualmachine · PyPI
#include <vmdetect/virtualmachine.h> #include <iostream> using namespace std; int main(int argc, char **argv) { VirtualMachine vm; if(vm) { cout << "Running on '" << vm << "' virtual machine" << endl; return 1; } return 0; } ... License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc... ... Download the file for your platform.
      » pip install virtualmachine
    
Published   Jan 17, 2025
Version   1.3.4
🌐
Python
python.org › downloads
Download Python | Python.org
Python 3.14.2 Dec. 5, 2025 Download Release notes
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-virtual-machine
Python Virtual Machine - GeeksforGeeks
July 23, 2025 - The Python Virtual Machine, often referred to as the Python interpreter, is responsible for executing Python code. It serves as an abstraction layer between the Python bytecode and the underlying hardware, providing a consistent environment for running Python programs across different platforms.
🌐
GitHub
hplgit.github.io › edu › accesspy › ._accesspy_uio007.html
VirtualBox virtual machine
Much of the material in this document is taken from Appendix H.1 in the book A Primer on Scientific Programming with Python, 4th edition, by the same author, published by Springer, 2014. VirtualBox is free software that allows you to run a virtual machine with, e.g., the Ubuntu operating system. Download and install VirtualBox.
🌐
W3Schools
w3schools.com › python › python_virtualenv.asp
Python Virtual Environment - venv
Python has the built-in venv module for creating virtual environments.
Find elsewhere
🌐
GitHub
github.com › ForceBru › PyVM
GitHub - ForceBru/PyVM: A virtual machine written in Python that executes x86 binaries according to the Intel Software Developer Manual
A virtual machine written in Python that executes x86 binaries according to the Intel Software Developer Manual - ForceBru/PyVM
Starred by 125 users
Forked by 19 users
Languages   Python 49.0% | C 25.5% | Assembly 24.6% | Makefile 0.9% | Python 49.0% | C 25.5% | Assembly 24.6% | Makefile 0.9%
🌐
GitHub
github.com › topics › python-virtual-machine
python-virtual-machine · GitHub Topics · GitHub
python documentation docs gplv3 restructuredtext python-virtual-machine python-language md txt gpl3 python-lang python-vm pyvm restructuredtext-lang restructuredtext-language seanpm2001-docs seanpm2001-documentation pyvm-docs pyvm-documentation python-experiments ... 🐍️📦️🐍️🌐️ The official source repository for the website of the PYVM project, an experimental virtual, machine for Python.
🌐
MachineLearningMastery
machinelearningmastery.com › home › blog › how to create a linux virtual machine for machine learning development with python 3
How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com
August 21, 2019 - In this tutorial, you discovered how to setup a Linux virtual machine for Python machine learning development. ... How to download and install VirtualBox, free, open-source software for managing virtual machines.
🌐
Leanpub
leanpub.com › insidethepythonvirtualmachine
Inside The Python Virtual Machine [Leanpub PDF/iPad/Kindle]
It will describe how Python code is compiled and run, how the language itself can be modified and will demystify the mysterious bytecodes that run on the Python virtual machine.Free With Membership
🌐
Leanpub
leanpub.com › insidethepythonvirtualmachine › read
Inside The Python Virtual Machine
This books provides a description of the CPython virtual machine and how it executes Python code · count_chapters · begin_reading · download · p_implied_book_part_name · Begin › · 1. Introduction · 2. The View From 30,000ft · 3. Compiling Python Source Code ·
🌐
Coding Confessions
blog.codingconfessions.com › p › cpython-vm-internals
The Design & Implementation of the CPython Virtual Machine
August 31, 2024 - Compiling programs for such a virtual machine is much simpler and it also solves the portability problems (the program once compiled can be run on any hardware where there is a virtual machine implementation available). Python also comes with a similar virtual machine and Python’s compiler ...
🌐
UW PCE
uwpce-pythoncert.github.io › PythonCertDevel › supplemental › installing › vagrant.html
Setting up Python via a Linux VM — PythonCert 5.0 documentation
So if you want an already setup environment in which to do your python programming that matches the environment used by the instructors and other students well (and many professional python developers too), a virtual machine running Linux can provide you that environment, regardless of the ...
🌐
GitHub
gist.github.com › zelark › 9976074
python virtual machine · GitHub
Download ZIP · python virtual machine · Raw · vm.py · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
Kentdlee
kentdlee.github.io › CoCoPages
CoCo - A Python Virtual Machine
We cannot provide a description for this page right now