【現象】
在命令行輸入python出現“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”
【解決方法】
1、確定當前環境
使用終端或Anaconda提示符執行以下步驟。
默認情況下,活動環境---您當前使用的環境---顯示在命令提示符開頭的括號()或括號[]中:(myenv) $
如果您沒有看到這個,請運行:conda info --envs
在顯示的環境列表中,當前環境以星號(*)突出顯示。
2、激活環境
conda activate myenv