簡體   English   中英

兩個版本的 python 安裝在兩個地方

[英]two versions of python installed at two places

我已經從我的系統中卸載了 python 3.8 並安裝了 3.7.x 但是在運行where pythonwhere python3在 cmd 中的命令后,我得到了兩個不同的位置。 我遇到了關於擁有兩個版本的 python 的問題。 所以我想知道如何完全刪除位於 python3 的文件。

要刪除特定的 python 版本,您可以使用which python並使用sudo rm -rf <path returned from the above command>刪除 python 文件夾。 您可能還必須將 PATH 環境變量修改為包含所需版本的 python 可執行文件的位置。

或者您可以安裝 Anaconda [https://www.anaconda.com/products/individual] 這有助於為您管理 python 的多個版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM