# Create Python Virtual Environment ###### tags: `Python` `venv` * Create virtual environment ``` $ python3 -m venv [env_name] eg: $ python3 -m venv test_env ``` * Install virtualenv ``` $ pip install virtualenv ``` After Python 3.6, there is "**venv**" module as default. * if you see below message, you have to install venv package.  ``` $ sudo apt install python3.8-venv ``` * Switch to created virtual environment ``` $ source testenv/bin/activate ```  You will find some modules will be missing in virtual environment.  * Exit virtual environment ``` $ deactivate ``` 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up