Anaconda是一個開源的Python包管理器,而Miniconda則是輕量級的Anacondahtml
下載地址:https://docs.conda.io/en/latest/miniconda.htmlpython
下載並安裝ubuntu
sudo apt-get install wget wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh
# 一直按回車而後輸入yes please answer 'yes' or 'no': >>> yes # 選擇安裝路徑, 文件名前加點號表示隱藏文件 Miniconda3 will now be installed into this location: >>> ~/.miniconda3 # 添加配置信息到 ~/.bashrc文件 Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [no] >>> yes
運行配置信息文件或重啓電腦bash
source ~/.bashrc
測試是否安裝成功測試
conda --version
建立虛擬環境this
conda create -n venv python=3.6
激活虛擬環境code
conda activate venv
退出虛擬環境htm
conda deactivate