-
Notifications
You must be signed in to change notification settings - Fork 36
Cmake error: ModuleNotFoundError: No module named 'skbuild' #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have C++ Build Tools installed, I have cmake installed and it is in my environment variables. Just have no clue what is happening |
It looks like you are installing the As we can see here, the latest version of A wheel is a convenient "archive" containing everything ready to be installed for the current platform. Considering there are no convenient For some reason, on your platform .. it also tries to build cmake wheel from source. Which is strange because, we provide wheel for windows. See https://pypi.org/project/cmake/#files We can see here the build time dependencies. For convenience, here is the content of requirements/build.txt :
|
What happen if you run the following:
|
Can you try updating pip (should be trivial in the virtual environment, and if that doesn't work by itself, with |
Hey there - came across this issue myself today trying to install I'm on macOS 10.15.6. (env) $ python -V
3.6.11
(env) $ pip list
Package Version
---------- -------
pip 20.2.2
setuptools 49.6.0 (env) $ pip install cmake --no-cache-dir # same with python -m pip install cmake --no-cache-dir
Collecting cmake
Using cached cmake-3.18.2.tar.gz (28 kB)
ERROR: Command errored out with exit status 1:
command: /Users/lynn/.pyenv/versions/3.6.11/envs/tmp-cmake/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g0/7rcby3gn13d06kt_3vtvz3gw0000gn/T/pip-install-00r12zvs/cmake/setup.py'"'"'; __file__='"'"'/private/var/folders/g0/7rcby3gn13d06kt_3vtvz3gw0000gn/T/pip-install-00r12zvs/cmake/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/g0/7rcby3gn13d06kt_3vtvz3gw0000gn/T/pip-pip-egg-info-5e2ydx33
cwd: /private/var/folders/g0/7rcby3gn13d06kt_3vtvz3gw0000gn/T/pip-install-00r12zvs/cmake/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/g0/7rcby3gn13d06kt_3vtvz3gw0000gn/T/pip-install-00r12zvs/cmake/setup.py", line 7, in <module>
from skbuild import setup
ModuleNotFoundError: No module named 'skbuild'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. (env) $ pip install cmake --no-cache-dir --prefer-binary
Collecting cmake
Downloading cmake-3.18.0-py3-none-macosx_10_6_x86_64.whl (43.0 MB)
|████████████████████████████████| 43.0 MB 8.7 MB/s
Installing collected packages: cmake
Successfully installed cmake-3.18.0 (same thing happens when installing |
This is because of #112 , there is no binary for 3.18.2 for CMake on macOS with Python 3. You can also set |
This would be very much improved if there was a |
I would also recommend to add |
See #103 Co-authored-by: Yoav Alon <[email protected]>
@skvark :
|
Thanks! |
This should be solved now! |
(Where now might mean some time ago, or with the 3.20.2 release) |
I have been troubleshooting this error for a day and a half now to no avail. Not sure what is going on. I saw a solved issue but those fixes are not working for me. Below is the error code.
The text was updated successfully, but these errors were encountered: