Create Python Virtual Environment In A Specific Directory
Solution 1:
No. You only have a single default Python installation in effect at any one time.
Once you're done using one virtualenv you can use deactivate
to go "back" to the standard, physical default Python installation.
Or you can use different command sessions with different virtual environments activated in each session.
Or you can explicitly invoke one version or another of Python from the command line each time, rather than just using the currently active-by-default one.
Solution 2:
It is possible to autoactivate a conda environment when entering a specific directory.
https://github.com/conda/conda/issues/5179
BUT, it doesn't change the fact that source activate xxx
affect your shell/prompt instead of your directory structure. You can still manually activate an environment and it will still affect your whole prompt.
Post a Comment for "Create Python Virtual Environment In A Specific Directory"