# Can't find asdf python installation

**URL:** <https://cwl.discourse.group/t/cant-find-asdf-python-installation/490>\
**Category:** CWL Questions\
**Created:** [November 15, 2021, 11:00am UTC](https://cwl.discourse.group/t/cant-find-asdf-python-installation/490 "2021-11-15T11:00:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/beastyblacksmith/32/243_2.png) [@BeastyBlacksmith](https://cwl.discourse.group/u/BeastyBlacksmith)\
**Post date:** [November 15, 2021, 11:00am UTC](https://cwl.discourse.group/t/cant-find-asdf-python-installation/490/1 "2021-11-15T11:00:23Z")

</div>

I am trying to create a python command line tool file for `cwl-runner` and I have installed python using `asdf` and thus the biary is located in `~/.asdf/bin`, but everytime I execute the tool I get

```auto
unknown command: python. Perhaps you have to reshim?

```

Running `python` on the command line itself works fine and `asdf reshim` didn’t make any change.  
Is there some interaction between those programs that prevents python to be found?

---

<div class="post-metadata">

**Author:** ![tetron](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/tetron/32/40_2.png) [@tetron](https://cwl.discourse.group/u/tetron)\
**Post date:** [November 15, 2021, 2:49pm UTC](https://cwl.discourse.group/t/cant-find-asdf-python-installation/490/2 "2021-11-15T14:49:01Z")

</div>

I’m not familiar with `asdf` but in general `cwltool` tries to create an isolated environment as much as possible, which means it does not inherit environment variables by default, but if there are environment variables that are required for your installation you could try running with `--preserve-environment`.

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/beastyblacksmith/32/243_2.png) [@BeastyBlacksmith](https://cwl.discourse.group/u/BeastyBlacksmith)\
**Post date:** [November 16, 2021, 8:35am UTC](https://cwl.discourse.group/t/cant-find-asdf-python-installation/490/3 "2021-11-16T08:35:45Z")

</div>

Hmm… I tried `cwltool --preserve-entire-environment` as well as `cwltool --preserve-environment PATH --preserve-environment ASDF_DIR` but still the outcome is the same
