Skip to content

Instantly share code, notes, and snippets.

@tarun-ssharma
tarun-ssharma / create_python3_venv.md
Created January 17, 2022 03:38
[MacOS] Create virtual environment for python3 libraries

Steps:

  1. Install python3 (follow https://docs.python-guide.org/starting/install3/osx/)
  2. Install virtualenv pip3 install virtualenv
  3. Make a virtual environment within current directory virtualenv -p python3 ./venv
  4. Activate the virtual environment for working with it source ./venv/bin/activate
  5. Deactivate it when done (Why? So you can work with other virtual environments or the global environment) deactivate