NOTE: This solution is not permanent! Everytime Anaconda Navigator is being used to update the envs, ~/.conda/environments.txt will be re-created which will lose all manually added envs.
- Navigate to
~/.conda - Make directory
<new_env_name>in~/.conda/envs - Edit
~/.conda/environments.txtto include~/.conda/envs/<new_env_name>
- Navigate to
~/.conda - Open terminal and create a link
<new_env_name>to the directory containingpython.exeof the pre-existing environment (see Creating Links below). - Edit
~/.conda/environments.txtto include~/.conda/envs/<new_env_name>
- Navigate to
~/.conda - Edit
~/.conda/environments.txtand to include path to directory containingpython.exeof the pre-existing environment
Windows:
- Right-click
cmd.exeand chooseRun as Administrator - Navigate to
~/.conda/envsdir withcd %USERPROFILE%\.conda\envs - Create soft-link in envs with
mklink /D <new_env_name> "<path_to_pre_existing_env_dir>"
macOS:
- Open Terminal
- Navigate to
~/.conda/envsdir withcd ~/.conda/envs - Create symlink in envs with
ln -sfv "<path_to_pre_existing_env_dir>" <new_env_name>
Example:
(Windows) mklink /D hou170 "C:\Program Files\Side Effects Software\Houdini 17.0.755\python27"
(macOS) TODO