Open zhongxiaj opened 1 year ago
git clone https://github.com/Karbo123/segmentator.git
cd segmentator/csrc mkdir build && cd build
cmake .. \ -DCMAKE_PREFIX_PATH=python -c 'import torch;print(torch.utils.cmake_prefix_path)' \ -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \ -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") \ -DCMAKE_INSTALL_PREFIX=python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'
python -c 'import torch;print(torch.utils.cmake_prefix_path)'
python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'
make && make install
make: *** 没有指明目标并且找不到 makefile。 停止。
git clone https://github.com/Karbo123/segmentator.git
cd segmentator/csrc mkdir build && cd build
cmake .. \ -DCMAKE_PREFIX_PATH=
python -c 'import torch;print(torch.utils.cmake_prefix_path)'
\ -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \ -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") \ -DCMAKE_INSTALL_PREFIX=python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'
make && make install