When building with --prefix /usr/local numpy not detected by python
On 64-bit ubuntu 9.04 and Python 2.6, I built numpy from source against atlas and lapack (everything 64bit). To install, I used: sudo python setup.py install --prefix /usr/local but then python doesnt find the numpy module, even though it exists in /usr/local/lib/python2.6/site-packages Do I need to add a .pth file somewhere to tell python about numpy? I thought that would be done during the install command Cheers! Chris
On Mon, Jun 1, 2009 at 4:37 PM, Chris Colbert <sccolbert@gmail.com> wrote:
On 64-bit ubuntu 9.04 and Python 2.6, I built numpy from source against atlas and lapack (everything 64bit).
To install, I used: sudo python setup.py install --prefix /usr/local
but then python doesnt find the numpy module, even though it exists in /usr/local/lib/python2.6/site-packages
Do I need to add a .pth file somewhere to tell python about numpy? I thought that would be done during the install command
Cheers!
Chris
I have two similar setups (kubuntu 64 bit and ubuntu 32 bit though) and am able to build without the prefix flag and everything seems to work okay. Install goes into the dist-packages directory and not the site-packages. I'm not sure why though to be honest. Skipper
building without the prefix flag works for me as well, just wondering why this doesnt... Chris On Mon, Jun 1, 2009 at 4:47 PM, Skipper Seabold <jsseabold@gmail.com> wrote:
On 64-bit ubuntu 9.04 and Python 2.6, I built numpy from source against atlas and lapack (everything 64bit).
To install, I used: sudo python setup.py install --prefix /usr/local
but then python doesnt find the numpy module, even though it exists in /usr/local/lib/python2.6/site-packages
Do I need to add a .pth file somewhere to tell python about numpy? I
On Mon, Jun 1, 2009 at 4:37 PM, Chris Colbert <sccolbert@gmail.com> wrote: thought
that would be done during the install command
Cheers!
Chris
I have two similar setups (kubuntu 64 bit and ubuntu 32 bit though) and am able to build without the prefix flag and everything seems to work okay. Install goes into the dist-packages directory and not the site-packages. I'm not sure why though to be honest.
Skipper _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Mon, Jun 1, 2009 at 15:37, Chris Colbert <sccolbert@gmail.com> wrote:
On 64-bit ubuntu 9.04 and Python 2.6, I built numpy from source against atlas and lapack (everything 64bit).
To install, I used: sudo python setup.py install --prefix /usr/local
but then python doesnt find the numpy module, even though it exists in /usr/local/lib/python2.6/site-packages
Do I need to add a .pth file somewhere to tell python about numpy?
No. Double-check that /usr/local/lib/python2.6/site-packages/ is on your sys.path. Ubuntu used to do this, but I don't know if they've changed policy in 9.04. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
thanks Robert, the directory indeed wasnt in the $PATH variable. Cheers, Chris On Mon, Jun 1, 2009 at 5:12 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Mon, Jun 1, 2009 at 15:37, Chris Colbert <sccolbert@gmail.com> wrote:
On 64-bit ubuntu 9.04 and Python 2.6, I built numpy from source against atlas and lapack (everything 64bit).
To install, I used: sudo python setup.py install --prefix /usr/local
but then python doesnt find the numpy module, even though it exists in /usr/local/lib/python2.6/site-packages
Do I need to add a .pth file somewhere to tell python about numpy?
No. Double-check that /usr/local/lib/python2.6/site-packages/ is on your sys.path. Ubuntu used to do this, but I don't know if they've changed policy in 9.04.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Mon, Jun 1, 2009 at 16:35, Chris Colbert <sccolbert@gmail.com> wrote:
thanks Robert,
the directory indeed wasnt in the $PATH variable.
No, not the environment variable $PATH, but sys.path. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
yeah, I came back here just now to call myself an idiot, but I'm too late :) Chris On Mon, Jun 1, 2009 at 5:37 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Mon, Jun 1, 2009 at 16:35, Chris Colbert <sccolbert@gmail.com> wrote:
thanks Robert,
the directory indeed wasnt in the $PATH variable.
No, not the environment variable $PATH, but sys.path.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
the directory wasn't on the python path either. I added a site-packages.pth file to /usr/local/lib/python2.6/dist-packages with the line "/usr/local/lib/python2.6/site-packages" Not elegant, but it worked. Chris On Mon, Jun 1, 2009 at 5:44 PM, Chris Colbert <sccolbert@gmail.com> wrote:
yeah, I came back here just now to call myself an idiot, but I'm too late :)
Chris
On Mon, Jun 1, 2009 at 5:37 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Mon, Jun 1, 2009 at 16:35, Chris Colbert <sccolbert@gmail.com> wrote:
thanks Robert,
the directory indeed wasnt in the $PATH variable.
No, not the environment variable $PATH, but sys.path.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (3)
-
Chris Colbert
-
Robert Kern
-
Skipper Seabold