InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.42k stars 664 forks source link

pip install itk failed, file name too long #4449

Closed ZoroGH closed 5 months ago

ZoroGH commented 9 months ago

Description

I use the command pip install itk,the log show it that it didn't have a CMake, then I install the CMake. Then i still fail to install becasue it requires the doxygen, ok i install the doxygen. Finally it show it that the File Name too Long error.

I don't know how to fix this, because the pwd is very short already "C:\Users\zorogh\dev\python\BS_origin>"

image

Steps to Reproduce

  1. install the CMake, add it to the PATH
  2. install the doxygen , add it to the PATH
  3. pip install itk

Environment

github-actions[bot] commented 9 months ago

Thank you for contributing an issue! 🙏

Welcome to the ITK community! 🤗👋☀️

We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 Also, please check existing open issues and consider discussion on the ITK Discourse. 📖

This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it.

ZoroGH commented 9 months ago

the Cmake error let me change the source directory, but the length is too long...

      CMake Error at CMakeLists.txt:109 (message):
        ITK source code directory path length is too long (133 > 50).Please move
        the ITK source code directory to a directory with a shorter path.
dzenanz commented 9 months ago

What processor architecture are you working with? ITK should have wheels for common architectures (amd64 and arm64). Also try enabling long paths.

thewtex commented 9 months ago

Hi,

Please use

pip install --upgrade --pre itk

to obtain binary wheels -- 3.12 wheels are currently available in the 5.4 release candidate.

thewtex commented 5 months ago
pip install --upgrade pip
pip install --upgrade itk

will install the itk 5.4.0 wheels. These are 3.11 Stable ABI wheels that work with 3.12.