Python: tensorflow + openCV to exe
ปัญหากับ windows 10 -64bit
ต้อง upgrade matplotlib ให้เป็น version 3.0.2 ขั้นไป ด้วยคำสั่ง
py -m pip install -U matplotlib
และ downgrade pandas ลงมาให้เป็น v 0.23.0 ด้วย
ไม่งั้นเกิด
tf.estimator package not installed
ref: https://github.com/tensorflow/tensorflow/issues/23007
ปัญหาถัดมาคือ tensorflow module not found
แก้ด้วยการเปลี่ยนชื่อไฟล์ โดยการเติม tensorflow.python.
นำหน้าชื่อไฟล์เดิมคือ _pywrap_tensorflow_internal.pyd
ref:
https://stackoverflow.com/questions/49732801/windows-10-pyinstaller-tensorflow-missing-modules/50580345
----------
ต้อง upgrade matplotlib ให้เป็น version 3.0.2 ขั้นไป ด้วยคำสั่ง
py -m pip install -U matplotlib
และ downgrade pandas ลงมาให้เป็น v 0.23.0 ด้วย
ไม่งั้นเกิด
tf.estimator package not installed
ref: https://github.com/tensorflow/tensorflow/issues/23007
ปัญหาถัดมาคือ tensorflow module not found
แก้ด้วยการเปลี่ยนชื่อไฟล์ โดยการเติม tensorflow.python.
นำหน้าชื่อไฟล์เดิมคือ _pywrap_tensorflow_internal.pyd
ref:
https://stackoverflow.com/questions/49732801/windows-10-pyinstaller-tensorflow-missing-modules/50580345
----------
ความคิดเห็น
แสดงความคิดเห็น