![](/img/trans.png)
[英]Use the default Python rather than the Anaconda installation when called from the terminal
[英]Windows - Use default python rather than Anaconda installation
我的問題是在我安裝 Anaconda 之前,我的 python 和python
和py
命令顯示相同的版本。 我安裝Anaconda后,我的python
版本是用Anaconda安裝的。 如何防止這種情況,因為我不想在我的 Windows 上使用 Anaconda python 版本。
我的 python 版本將使用默認的 python 版本,而不是 Anaconda 的版本
您需要更改計算機上 .py 文件的默認開啟程序。 嘗試右鍵單擊 .py 文件 select“打開方式”並查找 python。
您始終可以使用 cmd 並運行以下命令:
python <path_to_file>
或者
python3 <path_to_file>
這取決於你的 python 版本
(只要你在windows Path里設置你的python路徑即可)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.