Skip to content

Instantly share code, notes, and snippets.

@psenger
Last active May 6, 2024 10:19
Show Gist options
  • Select an option

  • Save psenger/0b9e3fe7e8c8cdf122d0d82f6a17a170 to your computer and use it in GitHub Desktop.

Select an option

Save psenger/0b9e3fe7e8c8cdf122d0d82f6a17a170 to your computer and use it in GitHub Desktop.
[Python versions with pip and venv] #Python

How to use different versions of Python on my mac

Why is it so hard to do Python on a mac... well its not so bad.

python3 -m venv myenv
source ./myenv/bin/activate
pip install Pipfile

Where myenv is the env directory from the given project and Pipfile is the name of the pipfile

here is how you export the env file.

pip freeze > requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment