
Hi, I am having problems with numpy installation. 1) These is an atlas 3.8.0 library installed somewhere in the search path. However, the installation gives errors with that installation. Is there a way to tell the installer to install the default (possibly slower) blas, instead of using the one in the path ? 2) Also, my main Python directory is called Python-2.5.2. When I try to configure with the install<prefix>, it changes Python-2.5.2 to "python-2.5.2" and creates a new directory. How can I make the installer not convert the upper-case "P" to a lower-case ? Thanks Rgds, Amit

On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi <aitagi@gmail.com> wrote:
Hi,
I am having problems with numpy installation.
1) These is an atlas 3.8.0 library installed somewhere in the search path. However, the installation gives errors with that installation. Is there a way to tell the installer to install the default (possibly slower) blas, instead of using the one in the path ?
Create a site.cfg file with the appropriate section; copy and modify the site.cfg.example file.
2) Also, my main Python directory is called Python-2.5.2. When I try to configure with the install<prefix>, it changes Python-2.5.2 to "python-2.5.2" and creates a new directory. How can I make the installer not convert the upper-case "P" to a lower-case ?
Can you give more information like the platform you are on, the full path to this directory, the exact commands that you executed, and the results of these commands? -- 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

On Mon, Mar 31, 2008 at 11:06 PM, Robert Kern <robert.kern@gmail.com> wrote:
Hi,
I am having problems with numpy installation.
1) These is an atlas 3.8.0 library installed somewhere in the search
On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi <aitagi@gmail.com> wrote: path.
However, the installation gives errors with that installation. Is there a way to tell the installer to install the default (possibly slower) blas, instead of using the one in the path ?
Create a site.cfg file with the appropriate section; copy and modify the site.cfg.example file.
*I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - "Don't search for the library. Assume that it is absent and use the default slower library" ?* * *
2) Also, my main Python directory is called Python-2.5.2. When I try to configure with the install<prefix>, it changes Python-2.5.2 to "python-2.5.2" and creates a new directory. How can I make the installer not convert the upper-case "P" to a lower-case ?
Can you give more information like the platform you are on, the full path to this directory, the exact commands that you executed, and the results of these commands?
*I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the directory to some name that is not in the path), I can perform the build. Now in the installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python-2.5.2. Incidentally, it also creates this new directory during install. * *Thanks Robert. Rgds, Amit*
-- 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://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - "Don't search for the library. Assume that it is absent and use the default slower library" ?
If you want to avoid compiling with say ATLAS, you can do something like ATLAS=None python setup.py build Disabling one specific version of one library is more difficult, though. cheers, David

On Tue, Apr 1, 2008 at 12:43 PM, David Cournapeau <cournape@gmail.com> wrote:
On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I figured how to specify a particular installation of the libraries. I
want
to do the opposite. How do I specify the following in site.cfg - "Don't search for the library. Assume that it is absent and use the default slower library" ?
If you want to avoid compiling with say ATLAS, you can do something like
ATLAS=None python setup.py build
*The shell does not understand this command. Is this the correct syntax ? Thanks Rgds, Amit *
Disabling one specific version of one library is more difficult, though.
cheers,
David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 12:43 PM, David Cournapeau <cournape@gmail.com> wrote:
On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I figured how to specify a particular installation of the libraries. I
want
to do the opposite. How do I specify the following in site.cfg - "Don't search for the library. Assume that it is absent and use the default slower library" ?
If you want to avoid compiling with say ATLAS, you can do something like
ATLAS=None python setup.py build
*Ok, this part works. I am using tcsh. So I had to do setenv ATLAS None. Rgds, Amit *
Disabling one specific version of one library is more difficult, though.
cheers,
David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
On Mon, Mar 31, 2008 at 11:06 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi <aitagi@gmail.com> wrote:
Hi,
I am having problems with numpy installation.
1) These is an atlas 3.8.0 library installed somewhere in the search
path.
However, the installation gives errors with that installation. Is there a way to tell the installer to install the default (possibly slower) blas, instead of using the one in the path ?
Create a site.cfg file with the appropriate section; copy and modify the site.cfg.example file.
I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - "Don't search for the library. Assume that it is absent and use the default slower library" ?
There's nothing default about it. You should use the [lapack_opt] section to specify whichever BLAS and LAPACK libraries you like, even if they are not optimized.
2) Also, my main Python directory is called Python-2.5.2. When I try to configure with the install<prefix>, it changes Python-2.5.2 to "python-2.5.2" and creates a new directory. How can I make the installer not convert the upper-case "P" to a lower-case ?
Can you give more information like the platform you are on, the full path to this directory, the exact commands that you executed, and the results of these commands?
I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the directory to some name that is not in the path), I can perform the build. Now in the installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python-2.5.2. Incidentally, it also creates this new directory during install.
Can you just do a "python setup.py install" instead of going through the menu system? The menu system may be bitrotten. -- 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

On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the directory to some name that is not in the path), I can perform the build. Now in the installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python-2.5.2. Incidentally, it also creates this new directory during install.
Looking at the code, I can confirm that the menu system is simply buggy and the cause of your problem. Do not use it. -- 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

On Tue, Apr 1, 2008 at 1:21 PM, Robert Kern <robert.kern@gmail.com> wrote:
I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi <aitagi@gmail.com> wrote: directory to
some name that is not in the path), I can perform the build. Now in the installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python-2.5.2. Incidentally, it also creates this new directory during install.
Looking at the code, I can confirm that the menu system is simply buggy and the cause of your problem. Do not use it.
*Robert, Could you kindly suggest an alternate way of getting it right ? Thanks Rgds, Amit *
-- 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://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 1:31 PM, Amit Itagi <aitagi@gmail.com> wrote:
On Tue, Apr 1, 2008 at 1:21 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I am installing this on a CENTOS linux platform (64 bit AMD opteron).
path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the
The directory to
some name that is not in the path), I can perform the build. Now in the installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python-2.5.2. Incidentally, it also creates this new directory during install.
Looking at the code, I can confirm that the menu system is simply buggy and the cause of your problem. Do not use it.
Robert,
Could you kindly suggest an alternate way of getting it right ?
Just like every other Python package: $ python setup.py build ... $ sudo python setup.py install --prefix=/home/amit/packages/Python-2.5.2 http://docs.python.org/inst/inst.html -- 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

Robert, I followed the recommended steps. Now I have "numpy" and " numpy-1.0.4-py2.5.egg-info" in Python-2.5.2/lib/python2.5/site-packages. However, I am not able to import numpy at the python prompt. Do I have to set pythonpath or something ? Thanks Rgds, Amit On Tue, Apr 1, 2008 at 2:44 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Tue, Apr 1, 2008 at 1:31 PM, Amit Itagi <aitagi@gmail.com> wrote:
On Tue, Apr 1, 2008 at 1:21 PM, Robert Kern <robert.kern@gmail.com>
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi <aitagi@gmail.com> wrote:
I am installing this on a CENTOS linux platform (64 bit AMD
path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the
opteron). The directory to
some name that is not in the path), I can perform the build. Now in
wrote: the
installation stage, I use python setup.py and then choose the option 2/home/amit/packages/Python-2.5.2. In the proposed sys.argv the path is shown as /home/amit/packages/python- 2.5.2. Incidentally, it also creates this new directory during install.
Looking at the code, I can confirm that the menu system is simply buggy and the cause of your problem. Do not use it.
Robert,
Could you kindly suggest an alternate way of getting it right ?
Just like every other Python package:
$ python setup.py build ... $ sudo python setup.py install --prefix=/home/amit/packages/Python-2.5.2
http://docs.python.org/inst/inst.html
-- 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://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 4:03 PM, Amit Itagi <aitagi@gmail.com> wrote:
Robert,
I followed the recommended steps. Now I have "numpy" and "numpy-1.0.4-py2.5.egg-info" in Python-2.5.2/lib/python2.5/site-packages. However, I am not able to import numpy at the python prompt. Do I have to set pythonpath or something ?
Possibly. Exactly what is in this .../Python-2.5.2/ directory? Is the python executable .../Python-2.5.2/bin/python? -- 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

This directory is just the Python source distribution (post configure and make). I don't have root permissions to our cluster and the default python distribution is an older one. Hence, I have my custom Python distribution in this /Python-2.5.2/ directory. The binary is /Python-2.5.2/python . On Tue, Apr 1, 2008 at 5:08 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Tue, Apr 1, 2008 at 4:03 PM, Amit Itagi <aitagi@gmail.com> wrote:
Robert,
I followed the recommended steps. Now I have "numpy" and "numpy-1.0.4-py2.5.egg-info" in Python-2.5.2/lib/python2.5/site-packages. However, I am not able to import numpy at the python prompt. Do I have to set pythonpath or something ?
Possibly. Exactly what is in this .../Python-2.5.2/ directory? Is the python executable .../Python-2.5.2/bin/python?
-- 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://projects.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Apr 1, 2008 at 4:21 PM, Amit Itagi <aitagi@gmail.com> wrote:
This directory is just the Python source distribution (post configure and make). I don't have root permissions to our cluster and the default python distribution is an older one. Hence, I have my custom Python distribution in this /Python-2.5.2/ directory. The binary is /Python-2.5.2/python .
Okay, don't do that. You will have to actually install Python to another location. For example, make a directory ~/python2.5/. Now go to the Python source directory; it would probably be best to start with a clean one. Configure Python using ~/python2.5 as the prefix: $ ./configure --prefix=~/python2.5 Now "make" and "make install". Add ~/python2.5/bin to your $PATH, preferably before /usr/bin or wherever the old python executable is. Build and install numpy using the ~/python2.5/bin/python binary. You should not need to set the --prefix. -- 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

Great !! This works for me. Thanks for your help !! Rgds, Amit On Tue, Apr 1, 2008 at 5:36 PM, Robert Kern <robert.kern@gmail.com> wrote:
This directory is just the Python source distribution (post configure and make). I don't have root permissions to our cluster and the default
On Tue, Apr 1, 2008 at 4:21 PM, Amit Itagi <aitagi@gmail.com> wrote: python
distribution is an older one. Hence, I have my custom Python distribution in this /Python-2.5.2/ directory. The binary is /Python-2.5.2/python .
Okay, don't do that. You will have to actually install Python to another location. For example, make a directory ~/python2.5/. Now go to the Python source directory; it would probably be best to start with a clean one. Configure Python using ~/python2.5 as the prefix:
$ ./configure --prefix=~/python2.5
Now "make" and "make install". Add ~/python2.5/bin to your $PATH, preferably before /usr/bin or wherever the old python executable is. Build and install numpy using the ~/python2.5/bin/python binary. You should not need to set the --prefix.
-- 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://projects.scipy.org/mailman/listinfo/numpy-discussion
participants (3)
-
Amit Itagi
-
David Cournapeau
-
Robert Kern