Skip to content

Instantly share code, notes, and snippets.

@tarun-ssharma
Created January 17, 2022 03:38
Show Gist options
  • Save tarun-ssharma/e2dbc98e72adb68ff6ec380d60691c0e to your computer and use it in GitHub Desktop.
Save tarun-ssharma/e2dbc98e72adb68ff6ec380d60691c0e to your computer and use it in GitHub Desktop.
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment