LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2015, 01:45 AM   #1
srinietrx
Member
 
Registered: May 2013
Posts: 101

Rep: Reputation: Disabled
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?
 
Old 05-31-2015, 02:20 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
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.
 
Old 06-01-2015, 09:19 AM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by srinietrx View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of python and dependencies in customized path instead of standard path srinietrx Linux - Software 1 05-31-2015 02:38 AM
Building .deb with customized prefix path SamTim74 Debian 0 01-22-2008 07:08 PM
standard search path of g++ ekdya Programming 2 07-22-2006 01:40 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration