栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

FileNotFoundError: [Errno 2] No such file or directory:

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

FileNotFoundError: [Errno 2] No such file or directory:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\me\AppData\Local\Temp\_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
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "D:anacondaenvsdeploy_testlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packagestensorflowpythonautograph__init__.py", line 37, in
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "D:anacondaenvsdeploy_testlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packagestensorflowpythonautographcoreconverter.py", line 71, in
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "D:anacondaenvsdeploy_testlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packagestensorflowpythonautographpyctcfg.py", line 41, in
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "D:anacondaenvsdeploy_testlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packagestensorflowpythonautographpyctcompiler.py", line 32, in
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "D:anacondaenvsdeploy_testlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packagesastor__init__.py", line 24, in
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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/315953.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号