Closed
Description
setuptools version
setuptools==60.0.5
Python version
python 3.10
OS
macOS intel 12.1
Additional environment information
No response
Description
python3 -m pip install -U setuptools
Expected behavior
python3 -m pip install -U setuptools
How to Reproduce
brew install python@3.10
python3 -m pip install -U setuptools
Output
Collecting setuptools
Downloading setuptools-60.1.1-py3-none-any.whl (952 kB)
|████████████████████████████████| 952 kB 351 kB/s
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 60.0.5
Uninstalling setuptools-60.0.5:
Successfully uninstalled setuptools-60.0.5
Successfully installed setuptools-60.1.1
and when you exit and relogin
Error processing line 1 of /usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site.py", line 186, in addpackage
exec(line)
File "<string>", line 1, in <module>
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Code of Conduct
- I agree to follow the PSF Code of Conduct