Assume I installed Anaconda/Miniconda (with conda 4.5.*) but didn't add it to PATH. Then I created environment in non-standard location (not in ./envs/
). Now everything I know is the path to python exec in this environment. How can I activate it? Should I find out where original root Miniconda is installed? How? Is there any way I can figure out that it's a conda created environment (so that it differs from other python)?
And I need methods that solve this problem both on Windows and on Linux. Actually I need to generate wrapper that activates conda env/virtual env (or don't activate if it's not an env) from setup.py post-install script that is pip installed from source (not wheel). I already know that if on Windows when pip is run it prepends <pyhon_env>\Library\bin
to PATH (maybe if it's not already there), but it's not enough (or I don't know how to use it).