Creating executables for machine learning Python scripts
In my previous article , I have showed you how to create an .exe file using PyInstaller. However, it will be a bit of a challenge if your project uses too many libraries (which took me two days to solve the issues I encountered, hence thought of providing a step by step guide for Python users to save their valuable time) . Therefore, in this article I am focusing on creating .exe files for Python scripts for machine learning projects, where libraries such as pandas, numpy, scikit-learn are being used. Here you go.. In my application, I am using following Python libraries; 1. Pandas 2. Numpy 3. Scikit-learn 4. Scipy Most of the times, PyInstaller doesn't recognise all of these libraries. In this case you need to specify these libraries in hooks files one by one. How to do this? let's start from Pandas. Note: Please install PyInstaller (follow the instructions given here ), and keep your Python scripts ready. 1. Pandas You can locate all the hooks files in the ho...