Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Python packaging tool 'setuptools' not found

I have a poetry project that is not using setuptools

[tool.poetry.dependencies]
python = ">=3.9,<3.11"
opencv-python = "^4.7.0.68"
tensorflow-macos = "^2.11.0"
tensorflow-metal = "^0.7.0"

but I keep getting this error in pycharm. Command from screenshot:

/Users/mc/Library/Caches/pypoetry/virtualenvs/besafe-_8yAv-v6-py3.9/bin/Python /Users/mc/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/223.8214.51/PyCharm.app/Contents/plugins/python/helpers/packaging_tool.py list

It just pops up without any action from my side. It seems like PyCharm is doing some execution under the hood but I do not know what is it.

I do not understand how am I supposed to fix this?

enter image description here

like image 672
mCs Avatar asked Sep 06 '25 03:09

mCs


1 Answers

While it seems that this requires a fix from the PyCharm team, an interim solution is to install setuptools as a development dependency,

new version (thanks @milonimrod)

poetry add --group dev setuptools

old version,

poetry add --dev setuptools
like image 128
Russell Avatar answered Sep 07 '25 15:09

Russell