Executing exe Error Using PyInstaller on Windows 10

Asked 2 years ago, Updated 2 years ago, 144 views

I used PyInstaller to exe the Python script in Windows 10.
However, when I tried to run the exe, I got the following error:

 C:\*********\dist\********>**********--arg 1123
Traceback (most recent call last):
  File "*********", line 1, in <module>
  File "c:\users\ishihara\appdata\local\temp\pip-install-jxtpvz\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 396, inload_module
  File "site-packages\pandas\_init__.py", line 35, in <module>
ImportError: Extension: No module named np_datetime not built. If you want to import pandas from the source directory, you may need to run'python setup.py build_ext --place --force'to build the Cextensions first.
[4832] Failed to execute script 288-FittingPG

It seems that there is no Pandas being imported.
Thank you for your cooperation.

Additional information.
When I tried using the recommended method, I got a message on the screen.
I don't think I can do it here.
Thank you.Enter a description of the image here

python windows-10 python2 pyinstaller

2022-09-30 21:32

1 Answers

Error message, ImImportError: Cextension: No module named np_datetime not built. If you want to import pandas from the source directory, you may need to run'python setup.py build_ext --inplace --force'to build the Cextensions first. br
[Direct translation] Import Error: Extension: np_datetime module missing or not built.If you import pandas from the source directory, you must run 'python setup.py build_ext --inplace --force' first to build the extension.
Try executing the command 'python setup.py build_ext --inplace --force' and then executing the Python script that you set to exe.

I don't know how my translation relates to your opinion, "It seems that there is no Pandas being imported."

The error message in the screenshot in the question only shows np_datetime as timedeltas, and the advice that you need to run 'python setup.py build_ext --inplace --force' is the same.


2022-09-30 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.