![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Error
一只小团子
这个作者很懒,什么都没留下…
展开
-
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 python3.5具体路径可以用:where is python查找...原创 2020-10-13 22:08:11 · 1021 阅读 · 0 评论 -
/usr/bin/env: “python\r“: 没有那个文件或目录
报错:/usr/bin/env: "python\r": 没有那个文件或目录 /usr/bin/env: "python\r": No such file or directory原因:在windows下从github中git clone下来可能创建多了\r字符。 #!/usr/bin/env python 在ubuntu会变成 #!/usr/bin/env python\r 而\r 会被shell 当成参数。 Windows文本文件的行结束标志是\r\n转载 2020-10-13 21:48:50 · 4247 阅读 · 2 评论