I'm wondering what my options are if I write a Python script which uses libraries installed on my computer (For example, for lxml) and I want to deploy this script on another computer.
Of course, there is a Python installed on another machine, but do I have to install all the libraries that I use in my script or can I just use the * .pyc file?
Is there a way to create an installer for this kind of problem that copies all the dependencies with the script in question?
The way I am talking about Windows machines.
Edit -------------------
After looking at your answers, I thought I should add it: / P>
This is the thing .... The library needed for this job quietly either with a pin or easy_install account either on a Windows installer (the witch I found after some search) or sources on the target computer (Witch I'm trying to escape).
I thought there was a way to port a PEC file or another PC, and that station would not require dependency on the account that already translated it bytecode .
If this is not possible, can someone show me some guidance for making windows installer of the package?
You should make setup.py to be used with it. Dependencies should be included in the
install_requires field. Later if you install using that package or dependency will be automatically downloaded and installed.
Comments
Post a Comment