Closed MalikRumi closed 1 year ago
It looks you need to install setuptools. The right way of doing so will depend on how you're running Python. For instance, if you're in a virtual environment, you'd want to do pip install setuptool
s, although my fuzzy, possibly incorrect recollection was that virtual environments come with setuptools already installed, so you shouldn't see this if so. If you're using the system Python and Pip, then you'd want to install python3-setuptools
.
Having said all that, the right answer is probably to provide a pyproject.toml
.
There's now an explicit dependency on setuptools
in pyproject.toml
, so hopefully this should resolve the issue in environments where setuptools
is not available.
If you're reporting a bug or requesting a feature, please include:
I get the same error with pip and pip3. I use PyCharm 2022.3. I also get this error trying to upgrade setuptools. These two answers suggested python3-distutils:
`https://youtrack.jetbrains.com/issue/PY-49687 https://superuser.com/questions/1319047/cant-install-virtual-interpreter-in-pycharm-in-linux/1319060#1319060
(chronicle) malikarumi@Tetuoan2:~/Projects/lifeandtimes/chronicle$ sudo apt-get install python3-distutils
python3-distutils is already the newest version (3.10.6-1~22.04). python3-distutils set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. ` I am out of ideas. Your assistance is greatly appreciated.