文件内容:
import paddle
print(paddle.__version__)
错误代码:
Traceback (most recent call last):
File "main.py", line 1, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "paddle/__init__.py", line 28, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "paddle/base/__init__.py", line 36, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "paddle/base/core.py", line 418, in
File "paddle/base/core.py", line 410, in set_paddle_lib_path
TypeError: sequence item 0: expected str instance, NoneType found
[3069] Failed to execute script 'main' due to unhandled exception!