常見的 Conda 指令 === ###### tags: `conda` ## 查看版本 ```shell= conda --version ``` ## 更新conda版本 ```shell= conda update conda ``` ## 安裝套件 ### 一般安裝 (conda install會根據現在的環境去安裝版本,而pip install 不會) ```shell= conda install <package_name> # 安裝個套件 conda install <package-1> <package-2> ``` ### 安裝特定版本 ```shell= conda install <package_name>==<package version> ``` ### 一次安裝(pip)好所有套件版本,利用requirements.txt ```shell pip install -r requirements.txt ``` ## 更新套件 ### 更新全部 ```shell= conda update ``` ### 更新指定套件 ```shell= conda update <package_name> ``` ## 升級套件 ### 升級全部 ```shell= conda upgrade --all ``` ### 升級指定套件 ```shell= conda upgrade <package_name> ``` ## 解除安裝套件 ```shell= conda uninstall <package_name> ``` ## 查看套件 ```shell= conda list ``` ## 環境設置 ### 查看虛擬環境 (environment) ```shell= conda env list ``` ### 建置虛擬環境 ```shell= conda create -n <env_name> ``` ### 刪除虛擬環境 ```shell= conda env remove -n <env_name> ``` ### 查看虛擬環境環境所含套件 (在其他環境下) ```shell= conda list -n <env_name> ``` ### 進入虛擬環境 ```shell= conda activate <env_name> ``` ### 離開虛擬環境 ```shell= conda deactivate ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up