linux python錯誤解決:import: not authorized `xx' @ error/constitute.c/WriteImage/1028.

報錯:

 

今天把windows上寫的python代碼放到linux下運行,出現了以下錯誤:

import: not authorized `xx' @ error/constitute.c/WriteImage/1028.

總之是一個python代碼的import的bug。

 

解決方法:

 

在python文件最前面加上:

#!/usr/bin/env python

並避免出現各種亂七八糟的字符即可!

 

參考資料:

https://blog.csdn.net/ai_XX/article/details/82998403

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章