FileNotFoundError: [Errno 2] No such file or directory: _MEI138162\astor\VERSION‘
Posted Data+Science+Insight
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FileNotFoundError: [Errno 2] No such file or directory: _MEI138162\astor\VERSION‘相关的知识,希望对你有一定的参考价值。
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\\\Users\\\\me\\\\AppData\\\\Local\\\\Temp\\\\_MEI138162\\\\astor\\\\VERSION'
目录
启示:
如果对应的错误日志在百度和bing都没有找到满意的结果,快速找google不要犹豫,犹豫就会浪费时间,时间宝贵不用我教你;
如果条件允许,自己搞个梯子,这样就可以使用google查找错误日志,事半功倍;
如果条件不允许,自己去找一些免费的梯子,速度慢一点也能用,毕竟是免费的不要太苛刻;
问题:
pyinstaller --clean --onefile LSTM_prediction.py
解决:
初始环境中的astor的版本为0.8.1,重新安装0.7.1版本,OK
pip uninstall astor
pip install astor==0.7.1
完整错误:
Traceback (most recent call last):
File "LSTM-Test.py", line 35, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "D:\\anaconda\\envs\\deploy_test\\lib\\site-packages\\PyInstaller\\loader\\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\\tensorflow\\python\\autograph\\__init__.py", line 37, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "D:\\anaconda\\envs\\deploy_test\\lib\\site-packages\\PyInstaller\\loader\\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\\tensorflow\\python\\autograph\\core\\converter.py", line 71, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "D:\\anaconda\\envs\\deploy_test\\lib\\site-packages\\PyInstaller\\loader\\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\\tensorflow\\python\\autograph\\pyct\\cfg.py", line 41, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "D:\\anaconda\\envs\\deploy_test\\lib\\site-packages\\PyInstaller\\loader\\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\\tensorflow\\python\\autograph\\pyct\\compiler.py", line 32, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "D:\\anaconda\\envs\\deploy_test\\lib\\site-packages\\PyInstaller\\loader\\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\\astor\\__init__.py", line 24, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\\\Users\\\\LIGUAN~1\\\\AppData\\\\Local\\\\Temp\\\\_MEI253042\\\\astor\\\\VERSION'
[26340] Failed to execute script LSTM
参考:Pyinstaller Tensorflow bundle fails
参考:astor
以上是关于FileNotFoundError: [Errno 2] No such file or directory: _MEI138162\astor\VERSION‘的主要内容,如果未能解决你的问题,请参考以下文章
您如何解决: FileNotFoundError: [Errno 2] 没有这样的文件或目录:
FileNotFoundError: [Errno 2] 没有这样的文件或目录,复制路径名后
PyInstaller + UI 文件 - FileNotFoundError: [Errno 2] 没有这样的文件或目录:
PyInstaller + UI 文件 - FileNotFoundError: [Errno 2] 没有这样的文件或目录:
FileNotFoundError: [Errno 2] 没有这样的文件或目录 + os.execv
p = open(q,'r') FileNotFoundError: [Errno 2] 没有这样的文件或目录:'m.txt' [重复]