# 使用conda建立乾淨的python環境 建立環境的時候可以使用 --file 參數搭配.txt文件指定要安裝的庫,在這時候conda便不會安裝多餘的東西到環境裡,所以只要在文件中指定對應的python和pip即可。 至於conda能安裝的庫有哪些則是在以下網址找尋: windows: https://repo.anaconda.com/pkgs/main/win-64/ linux: https://repo.anaconda.com/pkgs/main/linux-64/ 以windows python3.8為例,txt的內容如下: ``` https://repo.anaconda.com/pkgs/main/win-64/python-3.8.5-h5fd99cc_1.tar.bz2 https://repo.anaconda.com/pkgs/main/win-64/pip-20.2.2-py38_0.tar.bz2 ``` 在建立環境的時候使用的指令是: ``` conda env create --file {{txt_name}} --name {{env_name}} ```
×
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