Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95976

Re: Porting Python Application to a new linux machine

From Laura Creighton <lac@openend.se>
Subject Re: Porting Python Application to a new linux machine
References <4d764608-4091-4600-a1ed-ac11bd790792@googlegroups.com>
Date 2015-09-04 00:26 +0200
Newsgroups comp.lang.python
Message-ID <mailman.100.1441319220.8327.python-list@python.org> (permalink)

Show all headers | View raw


In a message of Thu, 03 Sep 2015 07:32:55 -0700, Heli Nix writes:
>Dear all, 
>
>I have my python scripts that use several python libraries such as h5py, pyside, numpy.... 
>
>In Windows I have an installer that will install python locally on user machine and so my program gets access to this local python and runs successfully. 
>
>How can I do this in Linux ? ( I want to install python plus my program on the user machine.) I do not want to use the user´s python or to install python on the user´s machine on root. 
>
>Thanks in Advance for your help, 

There are several approaches here.  One is to get your users to
run things in a virtualenv.

see:https://virtualenv.pypa.io/en/latest/
and
https://virtualenvwrapper.readthedocs.org/en/latest/

This works really well, but you have to have users who are
capable of setting up a virtualenv in the first place.
You will still run into problems of 'my shared library is
different from your shared library'.

YOu can also use PyInstaller (which you may have used to make
windows binaries) to make linux ones.  I've never done this, only
made windows ones -- but that is what it says on the label.
https://github.com/pyinstaller/pyinstaller/wiki

I think you will still have to have a set of different files to
download for different linux distributions, but I could be wrong
about that.

And if that problem is unacceptable, then you need docker.
https://www.docker.com/

I've just started playing with it, and I think it is really neat,
but it is too soon for me to have any clue what the problems/tradeoffs
are with it.

Laura

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Porting Python Application to a new  linux machine Heli Nix <hemla21@gmail.com> - 2015-09-03 07:32 -0700
  Re: Porting Python Application to a new linux machine Joel Goldstick <joel.goldstick@gmail.com> - 2015-09-03 11:27 -0400
  Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 17:31 +0200
    Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 01:39 +1000
    Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 01:55 +1000
    Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 18:23 +0200
      Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 02:49 +1000
        Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 19:29 +0200
          Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 03:33 +1000
  Re: Porting Python Application to a new linux machine Laura Creighton <lac@openend.se> - 2015-09-04 00:26 +0200
  Re: Porting Python Application to a new  linux machine Christian Gollwitzer <auriocus@gmx.de> - 2015-09-04 07:43 +0200
    Re: Porting Python Application to a new  linux machine Grant Edwards <invalid@invalid.invalid> - 2015-09-04 13:16 +0000
  PyInstaller+ Python3.5 (h5py import error) Heli Nix <hemla21@gmail.com> - 2015-09-23 09:20 -0700
    Re: PyInstaller+ Python3.5 (h5py import error) Christian Gollwitzer <auriocus@gmx.de> - 2015-09-23 20:07 +0200
      Re: PyInstaller+ Python3.5 (h5py import error) Heli Nix <hemla21@gmail.com> - 2015-09-24 02:58 -0700
        Re: PyInstaller+ Python3.5 (h5py import error) Laura Creighton <lac@openend.se> - 2015-09-24 13:11 +0200
          Re: PyInstaller+ Python3.5 (h5py import error) Hedieh E <hemla21@gmail.com> - 2015-09-25 01:53 -0700

csiph-web