# 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
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.