If you installed python3 via brew, installing python libs globally is not allowed anymore:

pip3 install requests

Fails with the error: "This environment is externally managed"

brew install python-requests 

Fails with the error: "Error: python-requests has been disabled because it does not meet homebrew/core's requirements for Python library formulae! It was disabled on 2024-06-23"

Solution: Luckily the solution is stated in the first error message, you have to create a virtual environment instead of a globally installed lib with:

python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install requests
Answer from Simon Meyer on Stack Overflow
🌐
GitHub
github.com › orgs › Homebrew › discussions › 5358
Getting Started · Homebrew · Discussion #5358
Run `brew link` on these: python-idna python-urllib3 certifi python-charset-normalizer · I have installed Python 3.12.3 using Homebrew in MacOs. I am trying now to install the module requests, using brew install python-requests, and I got the message: Warning: python-requests has been deprecated because it does not meet homebrew/core's requirements for Python library formulae!
🌐
Medium
medium.com › @nnega4428 › requirement-already-satisfied-requests-in-opt-homebrew-lib-python3-11-site-packages-0-25-1-f94b80123a9e
Requirement already satisfied: requests in /opt/homebrew/lib/python3.11/site-packages (0.25.1) | by prgrmr-yn | Medium
March 30, 2024 - brew uninstall python@3.12 brew uninstall python@3.11 · now you have to download pip, run this · python -m ensurepip — upgrade · now install the package called request or whatever package you using · pip3 install requests · and you are ...
🌐
YouTube
youtube.com › watch
how to install requests python mac - YouTube
Instantly Download or Run the code at https://codegive.com sure, i'd be happy to guide you through the process of installing the requests library in python ...
Published: February 19, 2024
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-requests-in-python-for-windows-linux-mac
How to Install Requests in Python - For Windows, Linux, Mac - GeeksforGeeks
July 12, 2025 - Requests is an elegant and simple HTTP library for Python, built for human beings. One of the most famous libraries for Python is used by developers all over the world. This article revolves around how one can install the requests library of Python in Windows/ Linux/ macOS using pip.
🌐
Homebrew
docs.brew.sh › Language-Runtimes-and-Packages
Homebrew Documentation: Language Runtimes and Packages
Use brew install when Homebrew provides the runtime or application you need. Use each language’s project environment and lock file for project dependencies. Avoid running language package managers with sudo or changing ownership of system-managed ...
🌐
YouTube
youtube.com › watch
How to Install REQUESTS in Python on Mac OS (Beginner-Friendly) | Python 3.12 (Latest) - YouTube
Learn how to install REQUESTS library in Python 3.12 on Mac (MacOS, Macbook, Mac M1, Mac M2, Apple, Pro, Air). Python 3.12 is latest version currently.Strugg...
Published: April 24, 2024
Find elsewhere
🌐
YouTube
youtube.com › watch
How to install requests for python 3 on mac. - YouTube
in this video i show you how to install requests for python 3 on mac.terminal commands: to install pip: sudo easy_install pipto install requests: pip3 ...
Published: April 28, 2020
🌐
YouTube
youtube.com › watch
How to install requests module in Python in 2025 on MacOS #requests - YouTube
In this video of Joey'sTECH, you will learn how to install the requests module in Python (latest version available 3.13) on MacOS. This tutorial video will a...
Published: July 5, 2025
🌐
Mac Install Guide
mac.install.guide › python › brew
Brew Install Python · Mac Install Guide
February 25, 2024 - Before you install any software package with Homebrew, run brew doctor to check that Homebrew is ready to install a package. ... Now you can install Python with brew install python.
🌐
Reddit
reddit.com › r/learnpython › problem with installing requests on mac os
r/learnpython on Reddit: Problem with installing requests on mac os
March 12, 2018 -

i have python 3.6.4.

I installed pip, and entered in terminial: "sudo pip install requests", and it tells me it's installed. But when I type "import requests" in python, it tells me "moduleNotFoundError: no module named'requests".

So I go back to terminal and try to install requests again, and it tells me "Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/2.7/site-packages (from requests)" so it looks like requests has already been installed. But what's the reason i cant import requests in python? Is it because the version is too old?

update Looks like it's because I installed 2.7pip, which I shouldn't have, I would like to uninstall that 2.7pip but not sure how.

I would very much appreciate some help. Thanks!!

🌐
datagy
datagy.io › home › python requests › how to install requests package in python – windows, macos, and linux
How to Install requests Package in Python - Windows, macOS, and Linux • datagy
December 30, 2022 - How to install the requests library using a Virtual Environment and a requirements.txt file ... The Python requests library is a Python library that handles making HTTP requests. The library is well known for being simple and elegant, by abstracting away much of the complexity of working with HTTP requests.
🌐
Libraries.io
libraries.io › homebrew › python-requests
python-requests 2.31.0 on Homebrew - Libraries.io - security & maintenance data for open source software
brew install python-requests · Dependencies · 4 · Dependent packages · 2 · Dependent repositories · 0 · Total releases · 1 · Latest release · Nov 29, 2023 · First release · Nov 29, 2023 · SourceRank · 4 · 2.31.0 · Nov 29, 2023 ·
🌐
Acronis
developer.acronis.com › doc › notary › v2 › guide › getting-started › setting-python-env.html
Setting up the Python environment - Notary API
June 13, 2023 - Install Python 3 and pip (a tool for installing and managing Python packages locally). Install the requests package that is required for sending requests to the API:
🌐
Python Forum
python-forum.io › thread-33790.html
Installing Python3 on MacOS using brew
Hello, I am trying to install python3 I have followed this guide: https://programwithus.com/learn/python/i...ython3-mac After using the following command: brew install python3The result is as followin
🌐
RNT Lab
rntlab.com › question › macos-brew-install-fail-for-python-3
MacOS Brew install fail for Python 3
Spent another hour installing software on Win 11 V.M. WAS looking good until I was getting requests to access folders on my Mac OS. Wasn’t thinking straight but now realise that I should have isolated the VM from the MacOS. The good news is that I have a working install on my Windows 10 Dell Laptop and now a successful upload and blinking LED. I believe I haven’t done the MacOS install in correct order and so Platform IO extension done before the python install.
🌐
Python.org
discuss.python.org › python help
On MacOS 14, pip install throws error: externally-managed-environment - Python Help - Discussions on Python.org
April 5, 2024 - On MacOS 14, pip install throws error: externally-managed-environment. What’s the best way to resolve? My background and exploration so far. I’m a recently retired devops engineer.
🌐
YouTube
youtube.com › watch
How to install requests library in Python | pip install requests - YouTube
Learn how to install requests module in python.You will learn to pip install requests in this video by creating a python project then creating a virtual envi...
Published: August 26, 2022
Views: 5K