# Python Virtual Environment Setup ## Prerequisites * Setup [pyenv](https://hackmd.io/uJyoipjQQJu2xlzz94f4hw) * Set global pyenv version to 3.7.3 ## Install virtualenv ```console pip install virtualenv ``` ## Create a new virtual environment ```console virtualenv venv ``` ## Activate your virtual environment ```console source venv/bin/activate pip install <dependencies go here> ``` ## Export your dependencies ```console pip freeze > requirements.txt ``` ## Import your dependencies ```console pip install -r requirements.txt ```
×
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