I have (almost) exactly the same question as this resolved question:
How to solve the issue of the conflict of anaconda and virtualenv?
..but my problem is the inverse. Namely, I had been working with conda environments fine before (for science projects), but when developing web projects I installed virtualenv. Since then, my conda environments are unreachable with the source command.
Here are my conda envs:
| => conda info --envs
# conda environments:
#
bunny /Users/.../anaconda/envs/bunny
root * /Users/.../anaconda
The answer in the posted question, says I should change my current Anaconda path in bash_profile from :
export PATH=$HOME/anaconda/bin:$PATH
to:
export PATH=$PATH:$HOME/anaconda/bin
So, by changing this I thought running this command to the anaconda envs folder would work:
source /Users/.../anaconda/envs/bunny/bin/activate
The result is the virtualenv (env)
gets activated, even if I am not on the directory where I installed it, which is:
/Users/./././WebDevelopment/DeployedProjects/./env
So I guess that the virtrualenv "source" command is masking the conda "source" command and works even if no absolute path is given:
| => source activate
(env) _______________________________________
| ~ @ Pablos-MBP
| =>
Also on my bash_profile
I have no path to virtualenv (like I do for anaconda)
How can I "create an alias to the virtualenv that calls it with an absolute path to the activate script" instead of calling it every time I use "source activate"?
Any help with this much appreciated!!
Best,
Pablo
PS. For reference, this answer also did not do the trick: Conda virtual environment not changing...