-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macos installation / troubleshooting notes
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# cli-eaa MacOS installation notes | ||
|
||
## Troubleshooting | ||
|
||
### ERROR[0002] and externally-managed-environment error | ||
|
||
If you are using multiple Python 11, the installation command `akamai install eaa` | ||
might fail with the externally-managed-environment error (see [PEP 668](https://peps.python.org/pep-0668/)). | ||
|
||
The error look like this: | ||
|
||
``` | ||
% akamai install eaa | ||
Attempting to fetch command from https://github.com/akamai/cli-eaa.git... [OK] | ||
Installing... [==== ] ERROR[0002] unable to execute 'python3 -m pip install --user --no-cache --upgrade pip setuptools': error: externally-managed-environment | ||
× This environment is externally managed | ||
(...) | ||
``` | ||
|
||
This is very common if you are using Homebrew and get a more recent Python version >= 11. | ||
|
||
The workaround is to get back to the legacy behavior - and have PIP to discard the error. | ||
You are gonna need a `pip.conf` file created in either of these file: | ||
|
||
`$HOME/Library/Application Support/pip/pip.conf` if directory `$HOME/Library/Application Support/pip` exists else `$HOME/.config/pip/pip.conf`. | ||
|
||
You might need to create the directory and the file, the minimal file should contain: | ||
|
||
``` | ||
[global] | ||
break-system-packages = true | ||
``` | ||
|
||
Once created, you can run the `akamai install eaa` again and it should work. | ||
|
||
See https://pip.pypa.io/en/stable/topics/configuration/ |