Open sebastian-nomi opened 2 years ago
Did you fix this issue?
I haven't fixed this issue. Has anyone fixed it?
I faced the same issue
What do you see when you run ..../python3.8 -Im ensurepip --upgrade --default-pip
(I have truncated the path here, since it could different for folks) directly on the command line? do you see a traceback?
I faced the same issue as well
Plus 1, I'm seeing this on my new M1Max trying to setup.
I'm seeing a report for
aws-sam-cli installation fails on macOS 11.3.1 because of missing python@3.8 https://github.com/aws/homebrew-tap/issues/207
Installing aws-sam-cli with homebrew on Mac: This error originates from a subprocess, and is likely not a problem with pip https://github.com/aws/homebrew-tap/issues/369
However, python@3.8 is successfully installed via brew (by this dependency)
/opt/homebrew/opt/python@3.8/libexec/bin/python --version
Python 3.8.14
python -m venv --system-site-packages /opt/homebrew/Cellar/aws-sam-cli/1.57.0/libexec
/opt/homebrew/Cellar/aws-sam-cli/1.57.0/libexec/bin/python -m pip install --upgrade pip
Then attempting to test, ran brew install aws-sam-cli
, =>
brew install aws-sam-cli
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
Warning: aws/tap/aws-sam-cli 1.57.0 is already installed and up-to-date.
To reinstall 1.57.0, run:
brew reinstall aws-sam-cli
However sam
is not anywhere in the path.
Trying again, with attempting brew's recommendation to reinstall, I hit the same error.
If you have to setup a ~/.pip/pip.conf
for a proxy, non-PyPI mirror, or other settings; you'll like run into what I did above.
It's like the installer is somehow ignoring my local user settings, my PATH for the system Python I run, and all of my environment variables (which I have set for PIP). I can't explain why this works, but on a suggestion from a colleague I tried this and it was instant resolution.
/Library/Application\ Support/pip/pip.conf
(note this is the root (/Library
) version without the hidden directory with the contents of pip.conf
identical to your local user.brew install aws-sam-cli
Hope this helps someone else stuck here where I was!
This is driving me crazy because I use AWS SAM 99% of the time at work. I had to uninstall/reinstall SAM and I get this error when I try to install it. Any help would be appreciated.
Specs: MacOS Monterrey 12.4