conda 管理 python 版本


conda常用命令

  • 查看當前系統下的環境
conda info -e
  • 創建新的環境
# 指定python版本為2.7
conda create -n env_name python=2.7
# 同時安裝必要的包
conda create -n env_name numpy matplotlib python=2.7
  • 環境切換
# linux/Mac下需要使用source activate env_name
activate env_name
#退出環境
deactivate env_name
  • 移除環境
conda remove -n env_name --all

三、包管理

  • 給某個特定環境安裝package有兩個選擇,一是切換到該環境下直接安裝,二是安裝時指定環境參數-n
activate env_nameconda install pandas
# 安裝anaconda發行版中所有的包
conda install anaconda
conda install -n env_name pandas
  • 查看已經安裝的package
conda list
# 指定查看某環境下安裝的package
conda list -n env_name
  • 查找包
conda search pyqtgraph
  • 更新包
conda update numpy
conda update anaconda
  • 卸載包
conda remove numpy

 

Installing tensorflow from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, tensorflow can be installed with:

conda install tensorflow

It is possible to list all of the versions of tensorflow available on your platform with:

conda search tensorflow --channel conda-forge


參考:https://github.com/conda-forge/tensorflow-feedstock


免責聲明!

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



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