On OS X, the setup has been tested with a Miniconda Python distribution.
On OS X, the setup has been tested with a Miniconda Python distribution.
1. Download and install [Miniconda3](https://conda.io/miniconda.html)(use Python 3.6 or later version)
1. Download and install [Miniconda3](https://conda.io/miniconda.html)(use Python 3.6 or later version)
2. Install pyBIS with pip: `pip install pybis`
2. Open the terminal and install pyBIS with pip: `pip install pybis`
3. Open MATLAB and set the Python executable (modify path according to your system): `pyversion /Users/Henry/miniconda3/bin/python`
3. Find the path to your Python executable: `which python`
4. Open MATLAB and set the Python executable. On Matlab R2019b or later, use the command: `pyenv('Version', 'Path/to/python')`. Replace with the path found in previous step. On earlier versions of Matlab, the `pyenv` command is called `pyversion`.
#### Windows 10
#### Windows 10
On Windows using the Anaconda or Miniconda approach did not work (for some reason, MATLAB could not find the Python modules). On the other hand, using the standard Python installation worked.
On Windows using the Anaconda or Miniconda approach did not work (for some reason, MATLAB could not find the Python modules). On the other hand, using the standard Python installation worked.