Checking-nipype-Installation
Checking nipype installation¶
- There are number of ways to check its installation as shown below.
import nipype; print(nipype.__version__)
import nipype; nipype.test()
- The above simply says that
pytestis not installed and using thepipinstall it. - Installed
pytestusingpip install pytestand run the text again. When test is run it gives the following error. -
Docs: https://docs.pytest.org/en/latest/warnings.html ======================================================== short test summary info ========================================================= ERROR ../../../../anaconda3/envs/nipype/lib/python3.8/site-packages/nipype/sphinxext/documenter.py - ModuleNotFoundError: No module nam... ERROR ../../../../anaconda3/envs/nipype/lib/python3.8/site-packages/nipype/sphinxext/apidoc/init.py - ModuleNotFoundError: No modul... ERROR ../../../../anaconda3/envs/nipype/lib/python3.8/site-packages/nipype/sphinxext/apidoc/docstring.py - ModuleNotFoundError: No modu... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ===================================================== 9 warnings, 3 errors in 57.98s =====================================================
-
The error above is related to the
Sphinixpackage which comes with nipype. We wil see it later.
import nipype as ny
ny.get_info()
Testing the installation¶
import nipype; nipype.test()
1. I installed `pytest` using `pip install pytest` it rand the test and filed on `Sphinix extension`.
2. When tried to import `nilearn` it also threw an error of not finding this package.
import nipype; nipype.test()
# Import the nipype module
import nipype
# Optional: Use the following lines to increase verbosity of output
nipype.config.set('logging', 'workflow_level', 'CRITICAL')
nipype.config.set('logging', 'interface_level', 'CRITICAL')
nipype.logging.update_logging(nipype.config)
# Run the test: Increase verbosity parameter for more info
nipype.test()
Comments