[Python-talk] mat3d error
Python
python at venix.com
Fri Sep 12 11:38:57 EDT 2008
On Fri, 2008-09-12 at 10:28 -0400, Labitt, Bruce wrote:
> If I type
> $which python I get
> /usr/bin/python
>
Yeah, but when you run that python, do you get the 32bit version or the
64bit version?
-----------------------------------------------
python
Python 2.5.1 (r251:54863, Jul 10 2008, 17:24:48)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.__file__
'/usr/lib/python2.5/os.pyc'
>>>
(exited with Ctrl-D)
-------------------------------------------------
I expect that you are running the 32bit python by default. Importing a
module and checking its __file__ attribute should make it clear. There
are other, smarter ways to know your platform, but I don't remember them
off the top of my head.
> $ cat /usr/bin/easy_install is the same as yours, with the exception of
> version number.
>
> #!/usr/bin/python
> # EASY-INSTALL-ENTRY-SCRIPT:
> 'setuptools==0.6c5','console_scripts','easy_install'
> __requires__ = 'setuptools==0.6c5'
> import sys
> from pkg_resources import load_entry_point
>
> sys.exit(
> load_entry_point('setuptools==0.6c5', 'console_scripts',
> 'easy_install')()
> )
>
> So this is OK?
>
>
> -----Original Message-----
> From: Python [mailto:python at venix.com]
> Sent: Friday, September 12, 2008 10:21 AM
> To: Labitt, Bruce
> Cc: python-talk at dlslug.org
> Subject: RE: [Python-talk] mat3d error
>
>
> On Fri, 2008-09-12 at 10:09 -0400, Labitt, Bruce wrote:
> > OK, I just found something funky. I have python spread out over too
> > places - i.e, I have a python in /usr/lib AND in /usr/lib64 !!!
> >
> > I think I'd like it only in lib64. So I have site-packages in both
> > locations...
> >
> > Umm, how do I clean this up?
> >
> > # ldd /usr/bin/python reveals
> > things are in /lib64
> >
> > But when I used easy_install, it put stuff into
> > /usr/lib/python2.4/site-packages
> >
> My easy_install looks like:
> ------------------------------------------------------------------------
> -------
> cat /usr/bin/easy_install
> #!/usr/bin/python
> # EASY-INSTALL-ENTRY-SCRIPT:
> 'setuptools==0.6c8','console_scripts','easy_install'
> __requires__ = 'setuptools==0.6c8'
> import sys
> from pkg_resources import load_entry_point
>
> sys.exit(
> load_entry_point('setuptools==0.6c8', 'console_scripts',
> 'easy_install')()
> )
> ------------------------------------------------------------------------
> -------
> The first line (shebang) would seem to be the controlling factor.
>
> When you type
> python
> which python do you get?
>
> > instead of /usr/lib64/python2.4/site-packages
> >
> > ???
> >
> > -Bruce
> >
> >
--
Lloyd Kvam
Venix Corp
DLSLUG/GNHLUG library
http://dlslug.org/library.html
http://www.librarything.com/catalog/dlslug
http://www.librarything.com/rsshtml/recent/dlslug
http://www.librarything.com/rss/recent/dlslug
More information about the Python-talk
mailing list