+ 1
pyinstaller
I have a python program that reads data from a csv file. I want to convert the script into a .exe application but the inclusion of the csv file is not making it work. is there a way to tell pyinstaller to consider the csv file too??
2 Antworten
+ 2
Move Your CSV File To The Exe Folder
And, In Your Script Use:
import os
csv=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'CSV.csv')
Now, Load Your CSV File In Pandas...
- 1
I have not used pyinstaller but importing pandas in python script and using read_csv function should work. You can use a data frame to store the csv content.