问题
I am trying to install "CMake" with command
pip3 install CMake.
Its gives an error for a module "skbuild"
from skbuild import setup, ModuleNotFoundError: No module named 'skbuild'
But but when tried to install skbuild with command
pip3 install skbuild
it gives error
"Could not find a version that satisfies the requirement skbuild (from versions: ) No matching distribution found for skbuild".
I am not able to solve this error. Please help. I trying the implementation it on Window 10. Using Python 3.7.0. I tried couple of versions of pip3 (10.0.1, 9.0.3, 9.0.2, 9.0.1). Nothing is working.
回答1:
There are pre-compiled binaries available on THIS page for Windows as MSI packages and ZIP files. You can find the one for the OS you are using.
If you want to proceed with your current approach then can you can probably refer THIS LINK
回答2:
Try pip install scikit-build. For me, pip install cmake works properly afterwards.
回答3:
You don't install CMake with pip, you need to install MacPorts and then follow the instructions that are on that page which say to install using sudo port install cmake.
来源:https://stackoverflow.com/questions/51154143/not-able-to-install-skbuild