Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efremidze/19375fcc9b3345ecbcc5d0c9f99e4d60 to your computer and use it in GitHub Desktop.
Save efremidze/19375fcc9b3345ecbcc5d0c9f99e4d60 to your computer and use it in GitHub Desktop.
How to install and use pip without sudo or admin on macOS

Install and use pip on macOS without sudo / admin access

Most recently tested on macOS Sierra (10.12.6)

  1. Install pip using Homebrew: brew install python.
  2. Verify installation by running pip3 --version and copy path for next step.
  3. Make sure ~/Library/Python/3.9/bin is in your $PATH. For bash users, edit the PATH= line in ~/.bashrc to append the local Python path; ie. export PATH=$PATH:~/Library/Python/3.9/bin. Apply the changes, source ~/.bashrc.

Links

https://www.groovypost.com/howto/install-pip-on-a-mac/

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