LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installation of python and dependencies in customized path instead of standard path (https://www.linuxquestions.org/questions/linux-software-2/installation-of-python-and-dependencies-in-customized-path-instead-of-standard-path-4175544077/)

srinietrx 05-31-2015 01:45 AM

Installation of python and dependencies in customized path instead of standard path
 
Developed application using Python Tkinter for GUI.
Now I need to run(i.e Application) in many computers having linux computer.

When ran this script it is asking for python-tk package. I have no problem installing with apt-get for ubuntu or yum for fedora.

But I need to install python and its dependencies in seperate customized directory and the application when running need to get library from custom directory instead of standard path.In short don't want to depend on python and its dependencies already installed in System.

Which option should I go for installing from source code or binary packages?
How to set Path such a way that while running script it should look for customized path instead of standard path?
Also I am thinking to do above task in bash script.
Is it possible readymade bash script is available for this type of installation?

John VV 05-31-2015 02:20 AM

on fedora, python MUST be installed and is.
yum uses it
it is a critical system program and you MUST KEEP the default version installed

so
python is already installed by default.

Valery Reznic 06-01-2015 09:19 AM

Quote:

Originally Posted by srinietrx (Post 5370102)
Developed application using Python Tkinter for GUI.
Now I need to run(i.e Application) in many computers having linux computer.

When ran this script it is asking for python-tk package. I have no problem installing with apt-get for ubuntu or yum for fedora.

But I need to install python and its dependencies in seperate customized directory and the application when running need to get library from custom directory instead of standard path.In short don't want to depend on python and its dependencies already installed in System.

Which option should I go for installing from source code or binary packages?
How to set Path such a way that while running script it should look for customized path instead of standard path?
Also I am thinking to do above task in bash script.
Is it possible readymade bash script is available for this type of installation?

You can use pyinstaller https://github.com/pyinstaller/pyinstaller/wiki
Pyinstaller will create either 1 file with all python modules or one directory,
so your program deployment should be easier


All times are GMT -5. The time now is 06:12 PM.