Open main menu

Changes

Install relax cloud.sagemath.com

1,286 bytes added, 08:28, 24 November 2015
no edit summary
pip install .
cd ..
</source>
 
===Test python packages===
Paste in
<source lang="python">
try:
import bmrblib
print bmrblib.__file__
print bmrblib.__version__
except ImportError:
print "no bmrblib module"
 
 
try:
import minfx
print minfx.__file__
print minfx.__version__
except ImportError:
print "no minfx module"
 
 
try:
import mpi4py
print mpi4py.__file__
print mpi4py.__version__
except ImportError:
print "no mpi4py module"
</source>
 
Output
<source lang="python">
>>> try:
... import bmrblib
... print bmrblib.__file__
... print bmrblib.__version__
... except ImportError:
... print "no bmrblib module"
...
/projects/9cd9d431-3eb2-4cde-a03a-4b9c6b49a1c2/.local/lib/python2.7/site-packages/bmrblib/__init__.pyc
1.0.4
>>> try:
... import minfx
... print minfx.__file__
... print minfx.__version__
... except ImportError:
... print "no minfx module"
...
/projects/9cd9d431-3eb2-4cde-a03a-4b9c6b49a1c2/.local/lib/python2.7/site-packages/minfx/__init__.pyc
1.0.12
>>> try:
... import mpi4py
... print mpi4py.__file__
... print mpi4py.__version__
... except ImportError:
... print "no mpi4py module"
...
/projects/9cd9d431-3eb2-4cde-a03a-4b9c6b49a1c2/.local/lib/python2.7/site-packages/mpi4py/__init__.pyc
2.0.0
</source>
== See also ==
[[Category:Devel tutorial]]