-
Notifications
You must be signed in to change notification settings - Fork 11
How to install PyECLOUD
IMPORTANT - Python 3 transition: Until Jan 2020, Python 2.7 will be the default Python version for PyECLOUD. The Python 3 version can be dowloaded following the instructions available here. As of Jan 2020, Python 3 will become the only supported python version
PyECLOUD has been tested exclusively on Linux (mainly Ubuntu and SLC distributions).
To operate it needs the following general tools and libraries:
- Python 2.7.XX (for v8.2.0 or earlier) / Python 3.7+ (for v8.2.0 or later)
- numpy
- scipy
- matplotlib (mainly for examples and tests)
- cython
- f2py
- mpi4py (in case PyPARIS parallelization is needed)
If you are already working with the python scipy stack you can skip this section
Different options can be used to setup the working environment:
- It is recommended to install Anaconda or Miniconda and use pip to install the required packages.
- A simple guide on how to install miniconda is available here
- It is possible to compile and install your python and all required packages following the instruction here:
- Some information for Mac users is available here
(for buildup simulations, only PyECLOUD, PyKLU and PyPIC are required)
git clone https://github.com/pycomplete/PyECLOUD
git clone https://github.com/pycomplete/PyPIC
git clone https://github.com/pycomplete/PyKLU
git clone https://github.com/pycomplete/PyHEADTAIL
git clone https://github.com/pycomplete/NAFFlib
git clone https://github.com/pycomplete/PyPARIS
git clone https://github.com/pycomplete/PyPARIS_sim_class
git clone https://github.com/pycomplete/PyPARIS_CoupledBunch_sim_class
cd PyECLOUD
./setup_pyecloud
cd ..
cd PyPIC
make
cd ..
cd PyKLU
./install
cd ..
cd PyHEADTAIL
make
cd ..
cd NAFFlib/NAFFlib
make
cd ..
I have cloned the tools in /home/giadarol/Desktop/PyFRIENDS_python3
export FOLDER_WITH_PACKAGES=/home/giadarol/Desktop/PyFRIENDS_python3
export PYTHONPATH=$FOLDER_WITH_PACKAGES:$FOLDER_WITH_PACKAGES/PyHEADTAIL:$FOLDER_WITH_PACKAGES/NAFFlib$PYTHONPATH
(this step will have to be repeated each time you open a new shell, alternative you can put these commands in your bashrc file)