Skip to content

Instantly share code, notes, and snippets.

Forked from akszydelko/Python3 Virtualenv
Last active February 12, 2024 21:10
Star You must be signed in to star a gist
Save pandafulmanda/730a9355e088a9970b18275cb9eadef3 to your computer and use it in GitHub Desktop.
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

  • Python 3
  • Pip 3
$ brew install python3

Pip3 is installed with Python3


To install virtualenv via pip run:

$ pip3 install virtualenv

Creation of virtualenv:

$ virtualenv -p python3 <desired-path>

Activate the virtualenv:

$ source <desired-path>/bin/activate

Deactivate the virtualenv:

$ deactivate

About Virtualenv

Copy link

if it fails for you in: virtualenv -p python3 <desired_path> Try: python3 -m virtualenv <desired_path>

Thanks so much! Only this command gets worked for my Mac!

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