Python Importerror:收集':B' 3 \ r \ r \ r \ n'
我用Dempyle3将.PYC文件分解。现在,当我尝试运行Python脚本时,它会将我返回此错误:
File "server_eolstep2.py", line 6, in <module>
from flask_restful import Api
File "AppData\Local\Programs\Python\Python37\lib\site-packages\flask_restful\__init__.py", line 2, in <module>
from functools import wraps, partial
File "AppData\Local\Programs\Python\Python37\lib\functools.py", line 21, in <module>
from collections import namedtuple
ImportError: bad magic number in 'collections': b'3\r\r\n'
我正在使用Python 3.7.0 我还安装了blask_restful,但我不知道这个错误的种类。
PS我在AppData之前删除了文件夹的名称。
I decompyled a .pyc file with decompyle3. Now when I'm try to run the python script it returns me this error:
File "server_eolstep2.py", line 6, in <module>
from flask_restful import Api
File "AppData\Local\Programs\Python\Python37\lib\site-packages\flask_restful\__init__.py", line 2, in <module>
from functools import wraps, partial
File "AppData\Local\Programs\Python\Python37\lib\functools.py", line 21, in <module>
from collections import namedtuple
ImportError: bad magic number in 'collections': b'3\r\r\n'
I'm using python 3.7.0
I yet installed flask_restful but I don't know the kind of this error.
ps I removed the name of the folder before Appdata.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论