-
Notifications
You must be signed in to change notification settings - Fork 3
Install crystalpy
Manuel Sanchez del Rio edited this page Feb 21, 2017
·
1 revision
You install in the usual way. This is working for me:
# proxy
export all_proxy=http://proxy.esrf.fr:3128/
#clean
rm -rf CRYSTALPY_TEST
# create temporary test directory
mkdir CRYSTALPY_TEST
cd CRYSTALPY_TEST
#create virtual environment
virtualenv -p /usr/bin/python --system-site-packages test1env
#activate virtual environment
source ./test1env/bin/activate
#install
pip install http://ftp.esrf.eu/pub/scisoft/Oasys/pip/xraylib-3.1.tar.gz
pip install mpmath
pip install crystalpy
#test
cd ~
python CRYSTALPY_TEST/test1env/lib/python2.7/site-packages/crystalpy/examples/Si111_simple.py
- Works for python2 and python3. If you are using python2 do not run examples/Si111.py that uses srxraylib and has problems in python2.