I\'m working in Windows, using PyInstaller
to package a python file. But some error is occuring:
Traceback (most recent call last):
File \"<
The executor does not know the location of the library, "C:\Python27\Lib\site-packages" etc. Thus, pyinstaller binds the module locations when creating the executable. Therefore, you need to import all the modules, you have used into your program.
Import the "_socket" module in your main file and recompile using pyinstaller.
I would probably work.
Note: But the versions of the modules installed in your system and used in the program must be compatible.