Conda add custom path to PATH variable
04:45 18 Nov 2025

I am trying to setup a custom environment in which I have a bunch of related tools running in conda. This is mostly because part of the tooling I want to have running is actually only reliably installable through anaconda.

So I created an environment using conda and have installed some libraries through conda, some through pip. All easy peasy. Then I went on to configure some of my variables using

conda env config vars set COOL_VARIABLE=nice_setting

Again: this works like a charm! But now comes the next problem: I am also using some tooling that I have to grab from github and build manually. I have that sitting on a folder on my disk and I would like to just add that dir to my path. But If I do

conda env config vars set PATH=${PATH}:/path/to/tool

conda will error out when activating the environment because there is an inconsistency in the path (makes sense I guess).

What is the best way to fix this?

path anaconda