I created a Python executable file using PyInstaller in a Conda environment called citygrows_demo
.
I ran conda install nltk
to install this package into the environment, and when I run conda list
I can see the nltk
package is installed.
I then created the executable file called common_fields_script.exe
using the command
pyinstaller "C:\Users\lakna\OneDrive\Desktop\CityGrows\common_fields\common_fields_script.py" --onefile --icon="C:\Users\lakna\OneDrive\Desktop\CityGrows\common_fields\touchscreen_book_bookmark_ebook_icon_191190.ico"
However, when I run this executable file it says that there is no module named nltk.
Why is this the case?