python install question

Bengt Richter bokr at oz.net
Wed Aug 14 20:06:39 EDT 2002


On Wed, 14 Aug 2002 18:11:04 GMT, "Fredrik Lundh" <fredrik at pythonware.com> wrote:

>Doug Stuart wrote:
>>
>> Sorry if this is a new one....I have python 2.2.1 compiled and installed
>> on solaris 7.  I would like to (need to) get python installed on another
>> system that is also running solaris 7.  How do I go about getting this
>> over there without recompliling it on the other system?
>
>copy the interpreter (PREFIX/bin/python) and the support library
>(PREFIX/lib/pythonX.Y/...) where PREFIX is the installation root and
>X.Y is the version number.  e.g.
>
>    /usr/local/bin/python
>    /usr/local/lib/python2.1/...
>
>if you cannot remember where you installed it, you can always ask
>the interpreter itself:
>
>    $ python
>    >>> import sys
>    >>> sys.prefix
>    '/usr/local'
>    >>> sys.version[:3]
>    '2.1'
>
What about version 1.5.2 and 12.3.4 ? ;-)

    import string
    string.split(version)[0]

Regards,
Bengt Richter



More information about the Python-list mailing list