在命令行輸入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.


【現象】

在命令行輸入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

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM