This forum is no longer active. Please post your questions to our new community site
I was running through the DjangoBook tutorials and now I need a Python Imaging Library
|
|
How do I install the Python Imaging Library to the python installed inside bitnami? nvm I just figured to unpack the exe with winrar and place the .py files in appropriate ares of the bitnami python folder |
|
|
Hi, Can you specify the steps you did in case another person needs to install the same library? Thanks |
|
|
Hi people, I guess we are talking here about a Windows installation because of the exe and winrar keywords ;) Ok, the problem here is that most of python for windows libraries expect to find Python in registry, but the bitnami stacks have a policy about respecting the native system, so you can have your custom Python installation and Bitnami Python will not create conflicts. But that’s not a problem because you are dealing with the best scripting language ever created (am I right?) and it lets you made your job easily in several ways. You can use setuptools, eggs, ..., but I will give you the solution I find easiest: - Go to http://www.pythonware.com/products/pil/index.htm#pil116 and download the sourcekit. - Now browse the file using winrar or your favourite tool and you will see a lot of stuff. - Ignore all and select the PIL folder and the PIL.pth file and copy both to DJANGOSTACK_DIR\python\Lib\site-packages\ - Now open your use_djangostack and type “import PIL”, it should be available. Hope it helps, cheers |

