Hi all, Hello, I am a freshman here. And I am a postgraduate student in Chinese University of Hong Kong. Currently I am trying to install numpy and scipy for my project. It's fine with numpy. But somehow I can't get scipy into working properly. When I tried to import scipy, it always says: RuntimeError: module compiled against version 1000000 of C-API but this version of numpy is 1000002. Could somebody help me? Thank you very very much. Best Regards, Xiang Peng
On Wed, 30 Aug 2006, Xiang Peng wrote:
It's fine with numpy. But somehow I can't get scipy into working properly. When I tried to import scipy, it always says: RuntimeError: module compiled against version 1000000 of C-API but this version of numpy is 1000002.
Xiang, You need the latest SVN builds for both of them. On the SciPy web site's download page you'll find the syntax to check out each. Make a directory for numpy/ and one for scipy/, cd to each in turn and run 'svn co ...' to get the trunk for each. If these directories already exist, 'rm -rf *' to get a clean install. Then, as root in the numpy/ directory re-run 'python setup.py install.' Now, before you do anything with SciPy, follow the links and install BLAS, LAPACK, and ATLAS. Once those are successfully built in subdirectories within scipy/, then run 'python setup.py install' on that code. HTH, Rich -- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Dear Rich, Thanks a lot for your reply. I am trying it now. Thanks again, Xiang ----- Original Message ----- From: "Rich Shepard" <rshepard@appl-ecosys.com> To: "SciPy Users List" <scipy-user@scipy.org> Sent: Wednesday, August 30, 2006 10:31 PM Subject: Re: [SciPy-user] Could you help me?
On Wed, 30 Aug 2006, Xiang Peng wrote:
It's fine with numpy. But somehow I can't get scipy into working properly. When I tried to import scipy, it always says: RuntimeError: module compiled against version 1000000 of C-API but this version of numpy is 1000002.
Xiang,
You need the latest SVN builds for both of them. On the SciPy web site's download page you'll find the syntax to check out each. Make a directory for numpy/ and one for scipy/, cd to each in turn and run 'svn co ...' to get the trunk for each. If these directories already exist, 'rm -rf *' to get a clean install.
Then, as root in the numpy/ directory re-run 'python setup.py install.'
Now, before you do anything with SciPy, follow the links and install BLAS, LAPACK, and ATLAS. Once those are successfully built in subdirectories within scipy/, then run 'python setup.py install' on that code.
HTH,
Rich
-- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863 _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
Hi Rich, I succeeded following your suggestions. Thank you so much. Best Regards, Xiang Peng ----- Original Message ----- From: "Rich Shepard" <rshepard@appl-ecosys.com> To: "SciPy Users List" <scipy-user@scipy.org> Sent: Wednesday, August 30, 2006 10:31 PM Subject: Re: [SciPy-user] Could you help me?
On Wed, 30 Aug 2006, Xiang Peng wrote:
It's fine with numpy. But somehow I can't get scipy into working properly. When I tried to import scipy, it always says: RuntimeError: module compiled against version 1000000 of C-API but this version of numpy is 1000002.
Xiang,
You need the latest SVN builds for both of them. On the SciPy web site's download page you'll find the syntax to check out each. Make a directory for numpy/ and one for scipy/, cd to each in turn and run 'svn co ...' to get the trunk for each. If these directories already exist, 'rm -rf *' to get a clean install.
Then, as root in the numpy/ directory re-run 'python setup.py install.'
Now, before you do anything with SciPy, follow the links and install BLAS, LAPACK, and ATLAS. Once those are successfully built in subdirectories within scipy/, then run 'python setup.py install' on that code.
HTH,
Rich
-- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863 _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (2)
-
Rich Shepard -
Xiang Peng