Anaconda 4.6.11: Python interpreter is in a conda environment, but the environment has not been activated

anacondaenvironment-variablespythonpython3

Although I have been using Anaconda for some time, the latest version has introduced some interesting behavior that I had not experienced.

  1. First, there is a warning showing up.

    WARNING: The conda.compat module is deprecated and will be removed in a future release.

    I have heard that this will be removed in next version, but if someone can confirm this, that would be great!


  1. Secondly, and most importantly, in previous versions, I could type 'python' into the command line in order to get the python interpreter. However, after going to this anaconda version installation, the following warning has been popping up:

    Warning:
    This Python interpreter is in a conda environment, but the environment has
    not been activated. Libraries may fail to load. To activate this environment
    please see https://conda.io/activation

    I have looked through the website, yet nothing has worked for me. When I type in 'conda activate' and then run 'python', there is no warning; however, I did not have to do that in the past.

NOTE: I installed anaconda for all users. The path and variables are below. My user variables have nothing related to anaconda as it was a system installation.

Environment Variables
Print Statement Environment Variables

Any suggestions?
Thank you, and please let me know if you need any clarification!

Best Answer

on which OS are you working?

Can you print your environment variables?

Looks like the python environment variable has been overwritten with the anaconda.

Related Question