Why not just do sudo easy_install pip or if this is for python 2.6 sudo easy_install-2.6 pip?

This installs pip using the default python package installer system and saves you the hassle of manual set-up all at the same time.

This will allow you to then run the pip command for python package installation as it will be installed with the system python. I also recommend once you have pip using the virtualenv package and pattern. :)

Answer from klobucar on Stack Overflow
🌐
GitHub
gist.github.com › haircut › 14705555d58432a5f01f9188006a04ed
How to install and use pip without sudo or admin on macOS · GitHub
PATH=$PATH:~/Library/Python/2.7/bin. Apply the changes, source ~/.bashrc. Use pip! Remember to append --user when installing modules; ie.
Discussions

python - How do I correct the path for pip? - Unix & Linux Stack Exchange
I'm trying to get pip to point to a different install rather than the default. It is currently pointing to /usr/bin/pip, but I want it to point to /usr/local/bin/pip. I believe I have the path set More on unix.stackexchange.com
🌐 unix.stackexchange.com
Python's path on MacOS
Just add the directory where you installed python to your PATH. More on reddit.com
🌐 r/MacOS
10
1
February 25, 2024
Why aren’t pip installations added to PATH by default on Mac Monterey
Got a new remote Mac Mini instance from MacStadium and installed pip3 via the “developer tools” or something which come with Xcode. Tried “pip3 install [package]” and got this message for a bunch of packages: WARNING: The script courlan is installed in '/Users/administrator/Library/Python/3.8/bin' which is not on PATH. Just out of curiosity, why isn’t Python on PATH by default? I can add ... More on reddit.com
🌐 r/learnpython
2
1
March 23, 2022
reset PATH for pip - Apple Community
Not sure what exactly to change in the editor. I no longer have Anaconda but when I uninstalled it, I guess this part was left over. I changed: export PATH=“/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH” ... Problem with default python3 and pip3 locations I have run numerous python3 installations on a couple of MacBook ... More on discussions.apple.com
🌐 discussions.apple.com
🌐
Graycode
graycode.ie › home › how to add python pip to path
How to Add Python Pip to Path - Graycode
October 18, 2023 - This short and simple blog will show you how to add pip to your system’s environment path, which means it will know how to find pip without prefixing it with “python -m”. ... • For a permanent modification, add the above line to your ~/.bashrc (for Linux) or ~/.bash_profile (for macOS) file:
🌐
Flexiple
flexiple.com › python › pip-command-not-found
pip Command Not Found – Mac and Linux Error (Solved) - Flexiple - Flexiple
March 5, 2024 - Add Pip to PATH: If pip is installed but the system can't find it, it's likely not in your PATH. For Mac, you can add it to your PATH by editing your .bash_profile or .zshrc file with export PATH="$PATH:/path/to/pip". On Linux, the file to edit ...
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
(Starting in version 10, pip displays a warning when installing any scripts to a directory outside PATH.) If the scripts are not available in your shell after installation, you’ll need to add the directory to your PATH: On Linux and macOS you can find the user base binary directory by running python -m site --user-base and adding bin to the end.
Find elsewhere
🌐
Codegive
codegive.com › blog › add_pip_directory_to_path_mac.php
Add pip directory to path mac
This tutorial will guide you through the process of adding the pip executable's directory to your macOS system's PATH environment variable. This allows you to run pip commands from any directory in your terminal without specifying its full path. We'll cover identifying your Python and pip ...
🌐
GitHub
gist.github.com › patriciogonzalezvivo › 77da993b14a48753efda
How to install Python correctly on Mac OSX · GitHub
pip install virtualenv pip install virtualenvwrapper pip install numpy brew install gfortran pip install scipy brew install freetype pip install matplotlib pip install ipython[all] For QT integration you need to download QT SDK and then PyQT ...
🌐
Reddit
reddit.com › r/macos › python's path on macos
r/MacOS on Reddit: Python's path on MacOS
February 25, 2024 -

I moved from Windows to a MacBook yesterday (runs MacOS 14 Sonoma on Apple Silicon). I'm trying to get Python to work properly on my MacBook but I'm having a hard time figuring it out.

I'm being able to run Python from the terminal but it doesn't run from VSCode. From the terminal (ZSH) too, only python3 ran but not python. To get around that, I followed an online article and added a ~/.zshrc file. I added these two lines to it:

alias python="/usr/bin/env python3"
alias pip="/usr/bin/env pip3"

I tried to install a Python package using pip but it hit me with a WARNING: The script normalizer is installed in '/Users/my_username/Library/Python/3.9/bin' which is not on PATH.

So till now I've understood that Python can be installed on Mac in 3 ways:

  1. The default inbuilt Python that comes with Mac out of the box.

  2. Python installed from the Python website via an installer.

  3. Python installed via Homebrew.

I am not being able to figure out the paths where each of these methods install Python. Which method is better for installing? Homebrew or download from the website? And once I have Python using one of the options, how do I make sure that it is the one used over the system Python? If I override the system Python, will there be any issues? How do I get Python to run from VSCode?

My MacOS and command line knowledge is very rudimentary so please correct me if I've said something wrong.

🌐
Apple Community
discussions.apple.com › thread › 255011194
reset PATH for pip - Apple Community
So, still within my home directory I entered % jupyter lab zsh: command not found: jupyter OK, I guess I might need to edit my $PATH. So I went to check where pip3's packages are % pip3 -V pip 21.2.4 from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework /Versions/3.9/lib/python3.9/site-packages/pip (python 3.9) This was as little surprising as I thought (from 'which' above) that pip3 was located at /usr/bin/pip3 I checked /usr/bin/pip3 and it is not a symlink. So I added /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages to the front of my $PATH in my .zshrc, sourced that and tried the jupyter lab command again.
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install pip on mac
How to Install Pip on Mac {3 Methods}
May 15, 2025 - Note: If pip is not in your path after installing via Homebrew, the solution is to re-link. Run brew unlink python && brew link python. Since macOS already comes with a preinstalled version of Python, the brew command installs a separate copy. Having a separate installation: Allows you to use newer Python versions than those preinstalled on macOS. Adds ...
🌐
Rawkblog
rawkblog.com › home › 2019 › april › setting up python3 and pip3 on your mac
Setting up Python3 and Pip3 on your Mac
April 6, 2019 - Let’s not worry about remembering to type out pip3 or python3 by aliasing them from your .bash_profile: ... Ansible will install itself to your PATH, but aws-cli lands in a Python folder, so we need to add that folder to our Bash profile.
🌐
Educative
educative.io › answers › how-to-add-python-to-the-path-variable-in-mac
How to add Python to the PATH variable in Mac
This often needs to be done after installing Python. The complete path of the Python (or Python3) UNIX executable can be added (for OS X 10.8 Mountain Lion and up) by:
🌐
XDA Developers
xda-developers.com › home › macos › how to add python to path in macos
How to add Python to PATH in macOS
November 2, 2024 - When you install Python on Mac, the system adds it to your path by default. If you can't run your Python commands from the terminal, something may have gone wrong during the installation process or afterwards. Instead of adding Python to PATH, you can reinstall it and try again by just running the installer.