在 Mac 上安裝 PySide 的時(shí)候得到提示:
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
原因是沒有安裝 CMake。
去 https://cmake.org/download/ 下載了最新版赤炒,安裝后發(fā)現(xiàn)并沒有成功命令行安裝。
打開 CMake 登失, Tools 里有一個(gè)選項(xiàng)為:How to install for Command Line Use.?
One may add CMake to the PATH:
PATH="/Applications/CMake.app/Contents/bin":"$PATH"
Or, to install symlinks to '/usr/local/bin', run:
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
Or, to install symlinks to another directory, run:
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install=/path/to/bin
可以裝 PySide了。