I have the following error while doing this command on Linux : pip3 install cmake --upgrade.
Collecting cmake
Using cached https://files.pythonhosted.org/packages/a5/7c/6525cadf99abbabbcb29676f53de0441e8d2f8d0114ab52aae2b31223a3b/cmake-3.16.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-lgui9mlv/cmake/setup.py", line 7, in <module>
from skbuild import setup
ModuleNotFoundError: No module named 'skbuild'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-lgui9mlv/cmake/
I tried to force it to different versions with pip3 install 'cmake==3.1x.x' --upgrade
And I have this error only with the version 3.16.3, the one taken by default with --upgrade parameter.
Also, I don’t have this error on Mac, only on Debian.
Note that building cmake using the source distributions is not something we support. I will probably look into removing the sdist (source distribution) from pypi completely.