Skip to content

Instantly share code, notes, and snippets.

@asears
Last active April 11, 2021 11:49
Show Gist options
  • Select an option

  • Save asears/eb97deddb6a71c0f9e0efe8cd412105b to your computer and use it in GitHub Desktop.

Select an option

Save asears/eb97deddb6a71c0f9e0efe8cd412105b to your computer and use it in GitHub Desktop.
Python venvs

Python Virtual Environments

Options for Windows:

  1. Use Conda.
  2. Use WSL

Otherwise.

From an admin command prompt.

c:\Python38\Scripts\easy_install.exe --upgrade pip or equivalent

Setup Venv

python -m venv validation
source validation\Scripts\activate

Folder paths.

D:\projects\python\testinfra\validation\Include
D:\projects\python\testinfra\validation\Lib
D:\projects\python\testinfra\validation\Scripts
D:\projects\python\testinfra\validation\Lib\site-packages

Resources

https://github.com/davidmarble/virtualenvwrapper-win/

https://github.com/regisf/virtualenvwrapper-powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment