conda install --channel conda-forge nipype
It is possible to list all of the versions of nipype available on your platform with:
conda search nipype --channel conda-forge
For more information, please see https://github.com/conda-forge/nipype-feedstock.
The installation process is similar to other Python packages.
If you already have a Python environment set up, you can do:
pip install nipype
If you want to install all the optional features of
nipype, use the following command:
pip install nipype[all]
all installs everything, one can also install select components as listed below:
'doc': ['Sphinx>=1.4', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'], 'tests': ['pytest-cov', 'codecov'], 'nipy': ['nitime', 'nilearn', 'dipy', 'nipy', 'matplotlib'], 'profiler': ['psutil'], 'duecredit': ['duecredit'], 'xvfbwrapper': ['xvfbwrapper'],
To make sure that you really have the newest version of Nipype on your system, you can run the
pip command with a flag that points to the github repo:
pip install git+https://github.com/nipy/nipype#egg=nipype
The easiest way to get nipype running on Mac OS X is to install Miniconda and follow the instructions above. If you have a non-conda environment you can install nipype by typing:
pip install nipype
Note that the above procedure may require the availability of gcc on your system path to compile the traits package.
If you downloaded the source distribution named something
nipype-x.y.tar.gz, then unpack the tarball, change into the
nipype-x.y directory and install nipype using:
pip install .
Note: Depending on permissions you may need to use
The best way to test the install is checking nipype's version and then running the tests:
python -c "import nipype; print(nipype.__version__)" python -c "import nipype; nipype.test(doctests=False)"
The test will create a lot of output, but if all goes well you will see at the end something like this:
---------------------------------------------------------------------- 2091 passed, 68 skipped, 7 xfailed, 1 warnings in 236.94 seconds
The number of tests and time will vary depending on which interfaces you have installed on your system.
Don’t worry if some modules are being skipped or marked as xfailed. As long as no main modules cause any problems, you’re fine. The number of tests and time will vary depending on which interfaces you have installed on your system. But if you receive an OK, errors=0 and failures=0 then everything is ready.