ITK icon indicating copy to clipboard operation
ITK copied to clipboard

pip install itk failed, file name too long

Open ZoroGH opened this issue 1 year ago β€’ 4 comments

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

  • windows11
  • Python 3.12.1
  • pip 24.0
  • cmake version 3.28.2
  • doxygen 1.10.0

ZoroGH avatar Feb 05 '24 13:02 ZoroGH

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.

github-actions[bot] avatar Feb 05 '24 13:02 github-actions[bot]

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.

ZoroGH avatar Feb 05 '24 13:02 ZoroGH

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

dzenanz avatar Feb 05 '24 14:02 dzenanz

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 avatar Feb 05 '24 17:02 thewtex

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.

thewtex avatar May 21 '24 02:05 thewtex