How to use conda to create separate python environments, each with a different $PYTHONPATH
问题 I would like to use conda to create different environments, each with a different $PYTHONPATH. Currently, I have to change the environment variables each time in my .bashrc. Is there a simple way of creating multiple python environments via conda, such that I can seamless switch (via source activate) and have the corresponding $PYTHONPATHs update automatically? 回答1: You can specify the PYTHONPATH before you execute any script, which would be easier than changing your .bashrc For example, to