Skip to content

Instantly share code, notes, and snippets.

@heyodai
Last active February 27, 2023 22:53
Show Gist options
  • Save heyodai/2d51b5c20779373ff6db72a39b97d190 to your computer and use it in GitHub Desktop.
Save heyodai/2d51b5c20779373ff6db72a39b97d190 to your computer and use it in GitHub Desktop.

I'm tired of having to look these up everytime I need them, so I'm writing them down.

  • Creation
    • Install the package: pip3 install virtualenv
    • Create environment: python3 -m venv env
  • Activation
    • Activate environment: source env/bin/activate
    • Deactivate: deactivate
  • Requirements
    • Save requirements: pip3 freeze > requirements.txt
    • Install requirements: pip3 install -r requirements.txt

Source article

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