My python IDE cannot automatically set the sitepackage as a system variable when the enviroment is not the base conda enviroment, it seems to set it to:
site-packages directory: D:\anaconda\envs\Lib\site-packages, which does not exist.Also, I get None for: import os
print(os.environ.get(“CONDA_DEFAULT_ENV”)), even after I have activated the right conda enviroment
But it works if I manually add import sys
sys.path.append(r"D:\anaconda\envs\pytorch_gpu_env\Lib\site-packages") it works, and there is not problem when I was working under the conda base enviroment