I recently installed the Anaconda version of Python. Now when I type python into the terminal it opens the Anaconda distribution rather than the default distribution. How do I get it to use the default version for the command python on windows? I have added the distribution to the path but when i type python --version, it shows the conda version and not the system version.
Conda manipulates the PATH
variable when it activates environments. A default install will auto-activate the base environment, which results in giving it precedence over other software accessible from PATH
. If you would prefer Conda not to auto-activate base by default, then set this in the configuration:
conda config --set auto_activate_base false
Documentation
$ conda config --describe auto_activate_base
# # auto_activate_base (bool)
# # Automatically activate the base environment during shell
# # initialization.
# #
# auto_activate_base: true
Otherwise, one can always do an ad hoc deactivation with conda deactivate
. This latter operation assumes the Conda shell functions are initialized .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.