scipy

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
scipy [2008/03/06 09:38] gerardscipy [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-====== numpy ====== 
- 
-===== Installation avec Python 2.4 ===== 
-  * [[http://www.scipy.org/Download|numpy-1.0.4.tar.gz]] 
-se logger devel1 sur nemo: 
-<code> 
-module load ss12 hpc 
-</code> 
-fichier site.cfg dans numpy/distutils/ 
-<code> 
-[DEFAULT] 
-library_dirs = /opt/studio12/SUNWspro/lib 
-include_dirs = /opt/studio12/SUNWspro/include 
- 
-[blas] 
-blas_libs = sunperf 
- 
-[lapack] 
-lapack_libs = sunperf 
- 
-</code> 
-et enfin: 
-<code> 
-> python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG 
- 
-</code> 
-et s'installe dans /local/apps/lib/lib/python2.4/site-packages/ 
- 
-Le test: 
-<code> 
-setenv PYTHONPATH /local/apps/lib/lib/python2.4/site-packages/ 
-python -c 'import numpy; numpy.test()' 
-</code> 
-échoue sur: 
-<code> 
-====================================================================== 
-FAIL: check_large_types (numpy.core.tests.test_scalarmath.TestPower) 
----------------------------------------------------------------------- 
-Traceback (most recent call last): 
-  File "/local/apps/lib/lib/python2.4/site-packages/numpy/core/tests/test_scalarmath.py", line 52, in check_large_types 
-    assert b == 6765201, "error with %r: got %r" % (t,b) 
-AssertionError: error with <type 'numpy.float96'>: got 6765201.00000000000364 
- 
-</code> 
-et pourtant: 
-<code> 
-nemo-henry% /usr/bin/python 
-Python 2.4.4 (#1, Jan  9 2007, 23:31:33) [C] on sunos5 
-Type "help", "copyright", "credits" or "license" for more information. 
->>> 6765201 == 6765201.00000000000364 
-True 
->>> 
-</code> 
- 
-===== Installation avec Python 2.5 ===== 
-se logger devel1 sur nemo: 
-<code> 
-module load ss12 hpc 
-</code> 
-fichier site.cfg dans numpy/distutils/ 
-<code> 
-[DEFAULT] 
-library_dirs = /opt/studio12/SUNWspro/lib:/opt/csw/lib 
-include_dirs = /opt/studio12/SUNWspro/include:/opt/csw/include 
- 
-[blas] 
-blas_libs = sunperf 
- 
-[lapack] 
-lapack_libs = sunperf 
- 
-</code> 
-et enfin: 
-<code> 
-> setenv LDFLAGS "-L/opt/csw/lib -R/opt/csw/lib"                                 
-> /opt/csw/bin/python setup.py install --prefix=$HOME/lib/blastwave | & tee INSTALL_BLASTWAVE.LOG 
-</code> 
-et s'installe dans /local/apps/lib/blastwave/lib/python/site-packages 
- 
-Le test: 
-<code> 
-setenv PYTHONPATH /local/apps/lib/blastwave/lib/python/site-packages 
-/opt/csw/bin/python -c 'import numpy; numpy.test()' 
-</code> 
- 
- 
-====== scipy ====== 
- 
-===== Installation avec python 2.4 ===== 
- 
-  * scipy-0.6.0.tar.gz 
- 
-<code> 
-> which python 
-/usr/bin/python 
-> python -c 'import os,sys;print os.name,sys.platform' 
-posix sunos5 
-> python -c 'import sys;print sys.version' 
-2.4.4 (#1, Jan  9 2007, 23:31:33) [C] 
- 
-> python setup.py config_fc --help-fcompiler 
- 
-SunFCompiler instance properties: 
-  archiver        = None 
-  compile_switch  = '-c' 
-  compiler_f77    = ['/opt/studio12/SUNWspro/bin/f90', '-ftrap=%none', '- 
-                    f77', '-xcode=pic32'] 
-  compiler_f90    = ['/opt/studio12/SUNWspro/bin/f90', '-xcode=pic32'] 
-  compiler_fix    = ['/opt/studio12/SUNWspro/bin/f90', '-fixed', '- 
-                    xcode=pic32'] 
-  libraries       = ['fsu', 'sunmath', 'mvec'] 
-  library_dirs    = [] 
-  linker_exe      = None 
-  linker_so       = ['/opt/studio12/SUNWspro/bin/f90', '-Bdynamic', '-G', '- 
-                    Bdynamic', '-G'] 
-  object_switch   = '-o ' 
-  ranlib          = None 
-  version         = LooseVersion ('8.3') 
-  version_cmd     = ['/opt/studio12/SUNWspro/bin/f90', '-V'] 
-Fortran compilers found: 
-  --fcompiler=sun  Sun or Forte Fortran 95 Compiler (8.3) 
- 
-</code> 
-Puis, en s'inspirant du [[http://mailman.rwth-aachen.de/pipermail/sunhpc/2008-March/000424.html|message]] 
-<code> 
-> setenv LD_PRELOAD /usr/lib/libmtsk.so 
-> wget "http://downloads.sourceforge.net/scipy/scipy-0.5.2.1.tar.gz?modtime=1187640016&big_mirror=0" 
-> tar xzf ../downloads/scipy-0.5.2.1.tar.gz  
-> cd scipy-0.5.2.1/ 
-> python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG 
- 
-      
-</code> 
-===== Installation avec python 2.5.1 ===== 
- 
-<code> 
-> which python 
-/opt/csw/bin/python 
-> /opt/csw/bin/python -c 'import os,sys;print os.name,sys.platform' 
-posix sunos5 
-> /opt/csw/bin/python -c 'import sys;print sys.version' 
-2.5.1 (r251:54863, Nov  3 2007, 02:54:36) [C] 
-</code> 
- 
-Puis, en s'inspirant du [[http://mailman.rwth-aachen.de/pipermail/sunhpc/2008-March/000424.html|message]] 
-<code> 
-> setenv LD_PRELOAD /usr/lib/libmtsk.so 
-> wget "http://downloads.sourceforge.net/scipy/scipy-0.5.2.1.tar.gz?modtime=1187640016&big_mirror=0" 
-> tar xzf ../downloads/scipy-0.5.2.1.tar.gz  
-> cd scipy-0.5.2.1/ 
-> /opt/csw/bin/python setup.py install --prefix=$HOME/lib/blastwave | & tee INSTALL.LOG 
- 
-      
-</code> 
- 
-====== PyML ====== 
-<code> 
-> cd src/PyML-0.6.15 
-> python setup.py build 
- 
-</code> 
- 
-lorsqu'on a cette erreur: 
-<code> 
-> python setup.py build                                                         running build 
-running build_py 
-running build_ext 
-building 'PyML/ext/_libsvm' extension 
-C compiler: /usr/lib/python2.4/pycc -DNDEBUG 
- 
-compile options: '-I/usr/include/python2.4 -c' 
-pycc: PyML/ext/libsvm.cpp 
-cc: No input file specified, no output generated 
-cc: No input file specified, no output generated 
-error: Command "/usr/lib/python2.4/pycc -DNDEBUG -I/usr/include/python2.4 -c PyML/ext/libsvm.cpp -o build/temp.solaris-2.10-i86pc-2.4/PyML/ext/libsvm.o" failed with exit status 1 
- 
-</code> 
-c'est parce qu'il utilise pycc au lieu de pyCC! 
-<code> 
-> /usr/lib/python2.4/pyCC -DNDEBUG -I/usr/include/python2.4 -c PyML/ext/libsvm_wrap.cpp -o build/temp.solaris-2.10-i86pc-2.4/PyML/ext/libsvm_wrap.o 
- 
-</code> 
-il faut aller voir dans les distutils de pynum pour comprendre ce qui se passe?! 
- 
-====== PyStemmer ====== 
-s'installe sans problème 
-<code> 
-/local/apps/src/PyStemmer-1.0.1 
-> python setup.py install --prefix=$HOME/lib 
-running install 
-running build 
-running build_ext 
-running install_lib 
-copying build/lib.solaris-2.10-i86pc-2.4/Stemmer.so -> /local/apps/lib/lib/python2.4/site-packages 
- 
-</code> 
  
  • scipy.1204792684.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)