問題描述
Python 3.8.0 已經發布,但我還沒有找到任何關于如何使用 conda 更新到 python 3.8 的帖子——也許他們會等待正式發布?有什么建議嗎?
Python 3.8.0 is out, but I haven't been able to find any post on how to update to python 3.8 using conda - maybe they will wait for the official release? Any suggestions?
推薦答案
你可以在 conda 中使用命令將你的 python 版本更新到 3.8
You can update your python version to 3.8 in conda using the command
conda install -c anaconda python=3.8
根據 https://anaconda.org/anaconda/python.雖然不是所有的包都支持 3.8,但是運行
as per https://anaconda.org/anaconda/python. Though not all packages support 3.8 yet, running
conda update --all
可以解決一些依賴失敗.您還可以使用此命令創建一個名為 py38 的新環境
may resolve some dependency failures. You can also create a new environment called py38 using this command
conda create -n py38 python=3.8
編輯 - 請注意,conda install
選項可能需要一段時間才能解決環境問題,如果你試圖在中途中止這個,你將失去你的 Python 安裝(通常這意味著它會求助于非 conda 預安裝系統 Python 安裝).
Edit - note that the conda install
option will potentially take a while to solve the environment, and if you try to abort this midway through you will lose your Python installation (usually this means it will resort to non-conda pre-installed system Python installation).
這篇關于使用 conda 升級到 python 3.8的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!