Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51232 > unrolled thread
| Started by | santiago.diez@caoba.fr |
|---|---|
| First post | 2013-07-25 08:11 -0700 |
| Last post | 2013-07-31 10:49 -0600 |
| Articles | 10 — 8 participants |
Back to article view | Back to comp.lang.python
Is it that easy to install Python ? santiago.diez@caoba.fr - 2013-07-25 08:11 -0700
Re: Is it that easy to install Python ? Maarten <maarten.sneep@knmi.nl> - 2013-07-25 09:13 -0700
Re: Is it that easy to install Python ? Matthew Lefavor <mclefavor@gmail.com> - 2013-07-25 12:15 -0400
Re: Is it that easy to install Python ? Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-07-25 18:36 +0200
Re: Is it that easy to install Python ? Chris Angelico <rosuav@gmail.com> - 2013-07-26 02:44 +1000
Re: Is it that easy to install Python ? Grant Edwards <invalid@invalid.invalid> - 2013-07-25 18:32 +0000
Re: Is it that easy to install Python ? wizzofozz <oscxxxxxxxaas@gmail.com> - 2013-07-28 00:05 +0200
Re: Is it that easy to install Python ? santiago.diez@caoba.fr - 2013-07-31 03:08 -0700
Re: Is it that easy to install Python ? Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-31 10:44 -0600
Re: Is it that easy to install Python ? Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-31 10:49 -0600
| From | santiago.diez@caoba.fr |
|---|---|
| Date | 2013-07-25 08:11 -0700 |
| Subject | Is it that easy to install Python ? |
| Message-ID | <b9a2d220-1f34-4a04-842e-4ec9769d7901@googlegroups.com> |
Hi there, I never write any Python program but as a system administrator, I'm often asked to install python on Debian servers. I just finished downloading, configuring, making and installing. The binary is now installed in : /usr/local/Python-2.7.5/bin/python2.7 (the path is a deliberate administrator choice). Is that it? What else will my users need? Regards Santiago
[toc] | [next] | [standalone]
| From | Maarten <maarten.sneep@knmi.nl> |
|---|---|
| Date | 2013-07-25 09:13 -0700 |
| Message-ID | <b88b68c6-468b-407c-aeb3-52aa752196a4@googlegroups.com> |
| In reply to | #51232 |
On Thursday, July 25, 2013 5:11:15 PM UTC+2, santia...@caoba.fr wrote: > Hi there, > > I never write any Python program but as a system administrator, I'm often asked to install python on Debian servers. > > I just finished downloading, configuring, making and installing. > > The binary is now installed in : > /usr/local/Python-2.7.5/bin/python2.7 > (the path is a deliberate administrator choice). > > Is that it? Probably. > What else will my users need? The path must be search $PATH in the environment where Python is used, so that standard scripts starting with "#!/usr/bin/env python" will find your python. Next your users will probably start requesting additional packages (regex, lxml, numpy, scipy, matplotlib, ... depending on what they actually do). Maarten
[toc] | [prev] | [next] | [standalone]
| From | Matthew Lefavor <mclefavor@gmail.com> |
|---|---|
| Date | 2013-07-25 12:15 -0400 |
| Message-ID | <mailman.5109.1374768990.3114.python-list@python.org> |
| In reply to | #51232 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, Jul 25, 2013 at 11:11 AM, <santiago.diez@caoba.fr> wrote: > Hi there, > > I never write any Python program but as a system administrator, I'm often > asked to install python on Debian servers. > > I just finished downloading, configuring, making and installing. > > The binary is now installed in : > /usr/local/Python-2.7.5/bin/python2.7 > (the path is a deliberate administrator choice). > > Is that it? > > What else will my users need? > They may need permission to install third-party modules themselves. That would probably require write permissions to /usr/local/Python-2.7.5/lib. If you are unwilling to grant those permissions, you can suggest that they learn how to work with "virtualenvs" (http://www.virtualenv.org/en/latest/), which would allow them to install third-party modules locally. And, of course, they need to be saavy enough to put the new python installation on the PATH.
[toc] | [prev] | [next] | [standalone]
| From | Irmen de Jong <irmen.NOSPAM@xs4all.nl> |
|---|---|
| Date | 2013-07-25 18:36 +0200 |
| Message-ID | <51f1541f$0$15947$e4fe514c@news.xs4all.nl> |
| In reply to | #51232 |
On 25-7-2013 17:11, santiago.diez@caoba.fr wrote: > Hi there, > > I never write any Python program but as a system administrator, I'm often asked to install python on Debian servers. > > I just finished downloading, configuring, making and installing. > > The binary is now installed in : > /usr/local/Python-2.7.5/bin/python2.7 > (the path is a deliberate administrator choice). > > Is that it? > > What else will my users need? Why didn't you use the Debian package instead? You now have installed an unsupported, untested custom built Python version on your server. Why not simply $ apt-get install python and let the Debian package maintainers take care of properly testing and supporting it... Also, installing additional python packages will be much less of a hassle because there's hundreds of them readily available in Debian's package repositories and they can be installed (including correct dependencies) in the same way. Irmen
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-07-26 02:44 +1000 |
| Message-ID | <mailman.5112.1374770703.3114.python-list@python.org> |
| In reply to | #51245 |
On Fri, Jul 26, 2013 at 2:36 AM, Irmen de Jong <irmen.NOSPAM@xs4all.nl> wrote: > On 25-7-2013 17:11, santiago.diez@caoba.fr wrote: >> Hi there, >> >> I never write any Python program but as a system administrator, I'm often asked to install python on Debian servers. >> >> I just finished downloading, configuring, making and installing. >> >> The binary is now installed in : >> /usr/local/Python-2.7.5/bin/python2.7 >> (the path is a deliberate administrator choice). >> > Why didn't you use the Debian package instead? You now have installed an unsupported, > untested custom built Python version on your server. Why not simply > > $ apt-get install python That'll do fine on Debian 7 (Wheezy, current stable). On Debian 6 (Squeeze, oldstable), that'll get you a 2.6 release IIRC. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-07-25 18:32 +0000 |
| Message-ID | <ksrr0i$293$1@reader1.panix.com> |
| In reply to | #51232 |
On 2013-07-25, santiago.diez@caoba.fr <santiago.diez@caoba.fr> wrote:
> Hi there,
>
> I never write any Python program but as a system administrator, I'm
> often asked to install python on Debian servers.
Are you sure it's not already installed? I haven't seen a Linux
distro for a _long_ time that didn't include Python as part of the
base installation.
> I just finished downloading, configuring, making and installing.
>
> The binary is now installed in :
> /usr/local/Python-2.7.5/bin/python2.7
Why not just apt-get install python?
--
Grant Edwards grant.b.edwards Yow! Uh-oh!! I'm having
at TOO MUCH FUN!!
gmail.com
[toc] | [prev] | [next] | [standalone]
| From | wizzofozz <oscxxxxxxxaas@gmail.com> |
|---|---|
| Date | 2013-07-28 00:05 +0200 |
| Message-ID | <kt1fr1$vd8$1@dont-email.me> |
| In reply to | #51232 |
On 25-7-2013 17:11, santiago.diez@caoba.fr wrote: > Hi there, > > I never write any Python program but as a system administrator, I'm often asked to install python on Debian servers. > > I just finished downloading, configuring, making and installing. > As a side note to all who have replied already; as a 'regular' linux user you can also just download, untar, configure and make. You can't do 'make install', but that's not required to run the executables (in this case 'python') built in the previous steps. just nitpicking .. :-) cheers, Ozz
[toc] | [prev] | [next] | [standalone]
| From | santiago.diez@caoba.fr |
|---|---|
| Date | 2013-07-31 03:08 -0700 |
| Message-ID | <acfe7c02-39b5-4c1d-a16d-41d00201e11a@googlegroups.com> |
| In reply to | #51374 |
OK thanks for your answers. So Python is not a daemon. Is it? Does it have a config file? Actually, each site on the web server is jailed in a chrooted environment. In the chrooted environment, Python appears to be in /usr/bin/python. If I give developers write access to a folder like /usr/lib/python/dist-packages/ (in the chrooted environment), will this be sufficient? Regards Santiago PS: Thanks for all your opinions about how one should install Python but that wasn't the purpose of this thread. Most programs on my servers are compiled. Period.
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-07-31 10:44 -0600 |
| Message-ID | <mailman.34.1375289113.1251.python-list@python.org> |
| In reply to | #51637 |
On Wed, Jul 31, 2013 at 4:08 AM, <santiago.diez@caoba.fr> wrote: > OK thanks for your answers. > So Python is not a daemon. Is it? No. > Does it have a config file? Not as such. Arbitrary site-specific customization can be done by creating a sitecustomize module, but this is not standard. There are also some environment variables that you may want to consider setting in the system profile, but none are required or generally recommended: http://docs.python.org/2/using/cmdline.html#environment-variables > Actually, each site on the web server is jailed in a chrooted environment. > In the chrooted environment, Python appears to be in /usr/bin/python. > > If I give developers write access to a folder like /usr/lib/python/dist-packages/ (in the chrooted environment), will this be sufficient? I don't have experience with this, but it seems to me that you should place the standard library and site-packages in the chrooted /usr/lib/python2.7 and then set the PYTHONHOME environment variable to /usr/lib.
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-07-31 10:49 -0600 |
| Message-ID | <mailman.35.1375289443.1251.python-list@python.org> |
| In reply to | #51637 |
On Wed, Jul 31, 2013 at 10:44 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote: > and then set the PYTHONHOME environment variable to /usr/lib. Rather, just /usr.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web