[Python] Fatal Python error: Py_Initialize: can’t initialize sys standard streams
在使用 PyCharm時遇到這一個 Error:
/Users/chunyuyao/PycharmProjects/HelloMax/hello.py
Fatal Python error: Py_Initialize: can’t initialize sys standard streams
Traceback (most recent call last):
File “/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/io.py”, line 52, in <module>
File “/Users/chunyuyao/PycharmProjects/HelloMax/abc.py”, line 1, in <module>
RuntimeError: lost sys.stdoutProcess finished with exit code 134 (interrupted by signal 6: SIGABRT)
解法:
a file named abc.py, remove that file in your project, your error will disappear.
真的很神奇耶!誰會知道不能使用 abc.py 這個檔案。
相關推薦
[Python] Fatal Python error: Py_Initialize: can’t initialize sys standard streams
在使用 PyCharm時遇到這一個 Error: /Users/chunyuyao/PycharmProjects/HelloMax/hello.py Fatal Python error: Py_Initialize: can’t initialize sys standard streams Trace
解決fatal:remote error:You can't push to git://github.com/username/*.git問題的辦法
branch正確的情況下, 不知為什麼,在push的時候總是出現:fatal: remote error: You can't push to git://github.com/user_name/user_repo.git Use [email protect
Python問題: UnicodeEncodeError:'ascii' codec can't encode characters in position
在Windows、Python2.7下寫入txt檔案時發現報錯了,報錯資訊如下: UnicodeEncodeError: 'ascii' codec can't encode characters i
Toad Can't initialize OCI. Error -1解決辦法
用Toad連線Oracle資料庫時報錯:"Can't initialize OCI. Error -1", 同時Toad中Connect using下拉列表中的"OraClient10g_home1"顯示為紅色, 發現是未將Oracle的路徑加入到環境變數path中去, 即
SVN Error:Can’t find temporary directory: Internal error
囧境: 今天svn更新程式碼時報錯: 按字面意思是說無法找到臨時目錄:內部錯誤 猜測: 目錄沒有操作許可權 磁碟滿了導致的 inode已滿 驗證: 驗證猜測1,檢視下 /var/tmp和/tmp的許可權是否正確,都是777,顯然是沒有問題的 驗
關於keepalived執行後日志狂刷IPVS: Can't initialize ipvs: Protocol not available的問題
前些日子安裝給虛擬機器安裝了keepalived+lvs,達到了高可用的負載均衡,但是今天再啟用的時候發現keepalived不正常,通過 /var/log/messages 檢視系統日誌發現狂刷IPVS: Can't initialize ipvs: Protocol n
EhCache啟動報Error starting heartbeat. Error was: Can't assign requested addre
最近採用EhCache解決分散式快取問題,我的開發筆記本為MacBook PRO,昨天晚上除錯完好的demo程式,今天早上啟動時竟然報以下錯誤: [2017-04-12 10:35:33,267] 460 [localhost-startStop-1] INFO [org
ERROR: 1005 Can't create table 'db' (errno: 13)
1.許可權問題 chown -R mysql:mysql /usr/local/mysql 2.主機名問題:重新設定主機名 hostname test然後重建mysql系統配置表 再不行最慘就是重啟機器後,也是重建資料庫系統配置表
MySQL ERROR 1005: Can't create table 分析
在mysql 中建立引用約束的時候會出現MySQL ERROR 1005: Can't create table (errno: 150)的錯誤資訊結果是不能建立 引用約束。 出現問題的幾種情況如下: 1、外來鍵的引用型別不一樣,如主鍵是int外來鍵是char 2、
Microsoft OLE DB Provider for ODBC Drivers error '80004005' Can't connect to MySQL server的一種原因
最近修理一個ASP+MySQL的程式。原來的程式設計師已經離職,所以修理這個程式的任務我接了。這次的錯誤是一個很普通的錯誤,我google了好長時間也沒有得到答案,最好慢慢分析才把這個錯誤搞定。 錯誤的症狀: 程式隨機出現一下的錯誤 Microsoft OLE DB P
uwsgi部署相關問題Fatal Python error: Py_Initialize: Unable to get the locale encoding
directory config add bound int binary smp odi byte uwsgi uwsgi.ini 啟動報錯 ini文件中切換用戶nginx後,因為權限問題,python虛擬環境變成了系統默認環境,缺少很多庫。 另外切換用戶啟動,
Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module name
Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' 解決方法: 1.找自己電腦上有沒有其他版本的Python,如果有
解決python安裝後cmd報錯Fatal Python error: Py_Initialize: unable to load the file system codec
因為我的電腦中以前裝有python,這次重新從網上安裝python3後與之前殘留的設定產生了衝突,開啟cmd輸入python出現錯誤: Fatal Python error: Py_Initialize: unable to load the file system codec Mo
Python中SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: ***錯誤
前幾天一直在對檔案的寫入、刪除等操作學習,但是複製檔案的路徑一直報錯對檔案操作不了,所以一直把檔案複製到pychrome當前專案的目錄中使用,現在總結下怎麼使用非當前目錄下的檔案。 fh=logging.FileHandler("C:\Users\huang\Pycharm
Fatal Python error: Py_Initialize: Unable to get the locale encoding問題記錄
問題: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $P
PyCharm出現錯誤,Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFound。。
借鑑如下的部落格:https://blog.csdn.net/qq_41574830/article/details/81153096 1.找到你安裝的python.exe,記住此地址 2.在Pycharm找到file--->setteing--project Interpret
成功解決Python中匯出圖片出現錯誤SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position
今天對Python程式設計寫個Hierarchical clustering層次聚類演算法,想把多張圖片層次聚類,輸出一張圖片時,發現了一個討厭的bugdrawdendrogram(tree, imlist, jpeg='C:\Users\99386\Desktop\resu
Linux 系統中 Fatal Python error: Py_Initialize: Unable to get the locale encoding
[email protected]:~$ pythonCould not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix&
Python連接數據庫異常‘latin-1‘ codec can‘t encode characte
Python異常:UnicodeEncodeError: 'latin-1' codec can't encode character u'\u201c' in position 0: ordinal not in range(256)需要設置數據庫連接編碼:db =
Python報錯:UnicodeDecodeError: ‘gbk‘ codec can‘t ...
代碼 seq new error ltib utf byte pen osi python讀取文件時提示:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xaa in position 82: illegal multi