I get a warning message while trying to create exectable file using pyinstaller
. This warning appeared after installing Pillow
. Previously i nevre
Solution for tcl
:
I found what was going wrong,.. Every problem that i faced on OSX
was the OS
itself(exactly the macport
). Python by default comes with the mac OS. And this version of python may be useful for just learning basic python, but is not suitable for Development purpose.
Installing brew's python helped. I followed this SO link. After doing these i was still getting errors. Later i had to change the paths on /etc/paths
. Basically rearranging them should work. But still then i wasn't getting it right.
Then i had to change the .bash_profile
, which worked for most users, But still i was getting mac's version of python and pip, not the brews version of python.
Finally i had to restart the machine for a couple of times and do the /etc/paths
and .bash_profile
steps repeatedly to get the system wide effect to accept brews version of python and pip
Solution for PIL
:
just adding a file called hook-PIL.py
with an empty content would serve the purpose. I found a link which was having the hook files content of pyinstaller
.
The location to create
for mac : Actually for mac this step wouldn’t be required. When we install python through brew and change the path, everything that you try to install later either through /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1.1dev_-py2.7.egg/PyInstaller/hooks/
pip install
or from source packages
tend to choose a different path. And everything will be taken care of.
for windows:C:\Python27\lib\site-packages\PyInstaller-2.1.1.dev0-py2.7.egg\PyInstaller\hooks
**Please check if this is a valid path on your machine before creating the file and then create the file. And im not sure or i don't know if just adding an empty file is the right way. But it worked for me