-
Create a python virtual environment (venv) using the following command:
python -m venv <path_to_venv>
-
Activate the virtual environment by navigating to the Scripts folder, then running
./activate
. To deactivate the virtual environment at any time, issue thedeactivate
command. -
Install the necessary dependencies.
3a. abagen:
git clone https://github.com/rmarkello/abagen.git cd abagen pip install .
3b. abagen + parquet (for faster conversions):
pip install abagen[io]
3c. Jupyter notebook:
pip install notebook
3d. ipykernel:
pip install ipykernel
3e. nibabel:
pip install nibabel
3f. nilearn:
pip install nilearn
3g. matplotlib:
pip install matplotlib
3h. seaborn:
pip install seaborn
-
Install a new ipython kernel:
ipython kernel install --user --name=<project_name>
- If you encounter a
ModuleError: No module name pkg_resources
message when attempting toimport abagen
, your Python setuptools package is likely broken. To resolve this, issue the following command:pip install setuptools
.