PyMeep conda packages are currently only available for python 2.7 and 3.6 on Linux (tested on Debian Jessie and Ubuntu Xenial). Note that PyMeep is still in its development stages, and should be considered alpha software. The conda packages are subject to change at any time.
1. Install Miniconda
It doesn't really matter if you install the python 2.7 or 3.6 version, since you can create conda environments with any version you want.
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p <desired_prefix>/miniconda3
export PATH=<desired_prefix>/miniconda3/bin:$PATH
conda create -n pm -c chogan pymeep
This will default to the python version of your Miniconda installation. If you want a different python version than your Miniconda installation, you can force the python version like this:
conda create -n pm2 -c chogan python=2 pymeep
source activate pm
Now when you type python
, it will use the PyMeep environment (located at <desired_prefix>/miniconda3/envs/pm
.
python -c 'import meep'
If you experience issues, make sure your PYTHONPATH
environment variable is unset, and make sure LD_LIBRARY_PATH
doesn't point to any meep
libraries.
After 'activate pm', we need to install PyMeep
https://github.com/conda-forge/pymeep-feedstock