簡體   English   中英

Python根本不起作用

[英]Python just doesn't work at all

由於某種原因,Python 3.5在我打開它的第二秒便崩潰了,顯示如下:

Fatal Python error: Py_initialize: unable to load the file system codec
ImportError: No module named 'encodings'

Current thread 0x00002168 (most recent call first):

當我嘗試打開IDLE時,什么都沒有發生。

我嘗試卸載並重新安裝,修復,但是沒有任何反應。 我正在使用Windows 10和Python 3.5。 有什么我想念的嗎?

您是否嘗試過此答案/評論中提到的解決方案?

Python3已成功安裝,但無法在終端中打開

我也為此苦苦掙扎了3個小時(我也正在使用Windows 10)。 解決方法如下:

  1. 轉到“ Control Panel\\System and Security\\System ,單擊左側的“ Advanced system settings ”。
  2. 將會彈出一個窗口,單擊“高級”選項卡。 然后點擊Environment variables
  3. 向下滾動“系統變量”,雙擊PYTHONHOME並將其設置為您安裝Python的目錄(對我來說是C:\\Program Files (x86)\\Python35-32 )。

希望這可以幫助

暫無
暫無

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

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