# Issue installing ITKPythonPackage with pip

**URL:** <https://discourse.itk.org/t/issue-installing-itkpythonpackage-with-pip/4530>\
**Category:** Beginner Questions\
**Tags:** github, cmake, python\
**Created:** [October 28, 2021, 11:22am UTC](https://discourse.itk.org/t/issue-installing-itkpythonpackage-with-pip/4530 "2021-10-28T11:22:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaraJ](https://discourse.itk.org/letter_avatar_proxy/v4/letter/c/a9adbd/32.png) [@ClaraJ](https://discourse.itk.org/u/ClaraJ)\
**Post date:** [October 28, 2021, 11:22am UTC](https://discourse.itk.org/t/issue-installing-itkpythonpackage-with-pip/4530/1 "2021-10-28T11:22:53Z")

</div>

Hi,  
I need itk 5.2 so I am trying to install itk python packages with pip. I am running a windows 10 64bit, python 3.7 within anaconda3 environment, Microsoft Visual Studio 2019.  
After installing pypi, cmake 3.21 & scikit-build & doxygen via conda, running `pip install itk` gives me a “ITK source code directory path length is too long (128 \> 50)” error. I believe it is the same which was faced in this [github discussion](https://github.com/InsightSoftwareConsortium/ITKPythonPackage/issues/67).  
I tried:

- ` pip install --upgrade pip`, which did not change the issue.
- I also updated the maximum path length for windows following these [steps](https://www.microfocus.com/documentation/filr/filr-4/filr-desktop/t47bx2ogpfz7.html).
- since it is a cmake error I updated the CMakeList.txt with `set(CMAKE_OBJECT_PATH_MAX 260)`. I added this line in all the CMakeList.txt found in anaconda directory (including `anaconda3\envs\IQA37\Lib\site-packages\cmake`), but again no progress. I believe I should update a cmake list directly in the itk build directory but I cannot find it in the Temp directory where it should have been created by pypi (`C:\Users\claraj\AppData\Local\Temp\pip-install-55ti22tq\itk_b9de5bc5823540268da4341a903c5837` )

Attached is the output error. Please could you help me figure out the steps to solve this?  
[ITKInstallError.txt](https://discourse.itk.org/uploads/short-url/qJLHaUwhQ4JPo4OB7tR41uH8NVr.txt) (26.7 KB)

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [October 28, 2021, 1:00pm UTC](https://discourse.itk.org/t/issue-installing-itkpythonpackage-with-pip/4530/2 "2021-10-28T13:00:15Z")

</div>

I responded in the GitHub issue. Let’s continue the discussion there.
