# pixi not being found at the expected location at development setup

**URL:** https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589
**Category:** Beginner Questions
**Tags:** setup, pixi, pre-commit
**Created:** [July 1, 2025, 11:26pm UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589 "2025-07-01T23:26:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [July 1, 2025, 11:26pm UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589/1 "2025-07-01T23:26:15Z")

</div>

Hi,  
I was trying to set up my local ITK for development on a Windows 10 machine following  
[Contribute to ITK - ITK's documentation](https://docs.itk.org/en/latest/contributing/index.html#setup).

I installed `pixi` using the MSI provided in their GitHub release page. It turns out that Windows chose the location below:

```auto
C:/Users/{username}/AppData/Local/pixi/bin/pixi.exe

```

for that. Not the best one, but it works: `pixi -h` shows the help on a terminal.

However, when executing:

```auto
./Utilities/SetupForDevelopment.sh

```

ITK is unable to find the `pixi` executable:

```auto

Utilities/GitSetup/setup-precommit: line 29: C:/SDKs/ITK/itk-head/ITK/.git/hooks/pixi/bin/pixi.exe: No such file or directory

```

I am not sure to understand why ITK looks for `pixi` within ITK’s source code directory:  
[ITK/Utilities/GitSetup/setup-precommit at main · InsightSoftwareConsortium/ITK · GitHub](https://github.com/InsightSoftwareConsortium/ITK/blob/main/Utilities/GitSetup/setup-precommit#L23)

There is no CMake variable telling where it can find it otherwise.

Anybody that has succeeded doing this has any suggestion?

Thanks.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [July 2, 2025, 2:02am UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589/2 "2025-07-02T02:02:49Z")

</div>

Hi Jon Haitz,

Per the documentation, pixi does not need to be installed separately. A local version gets installed by ./Utilities/SetupForDevelopment.sh (which calls the setup-precommit script) to bootstrap pre-commit.

Perhaps adding:

```auto
set -x

```

to the `setup-precommit` script adds more information?

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [July 2, 2025, 2:20am UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589/3 "2025-07-02T02:20:46Z")

</div>

Thanks for the suggestion, Matt.

Here the relevant trace:

```auto
+ Utilities/GitSetup/setup-precommit
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Utilities/GitSetup/setup-precommit: line 29: C:/SDKs/ITK/itk-head/ITK/.git/hooks/pixi/bin/pixi.exe: No such file or directory
+ echo 'Failed to setup pre-commit.'
Failed to setup pre-commit.
+ echo

+ SetupForDevelopment_VERSION=11
+ git config hooks.SetupForDevelopment 11

```

The `curl` certificate issue was visible before, but I thought it was not relevant. Maybe I am wrong?

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [July 2, 2025, 12:02pm UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589/4 "2025-07-02T12:02:27Z")

</div>

Correct, the SSL certificate needs to be resolved.

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [July 3, 2025, 1:09am UTC](https://discourse.itk.org/t/pixi-not-being-found-at-the-expected-location-at-development-setup/7589/5 "2025-07-03T01:09:32Z")

</div>

OK, all I tried did not work except disabling the antivirus while running `SetupForDevelopment.sh`.

Now pre-commit is working 👌.

Thanks Matt.
