# Pip installing and using nipype

**URL:** <https://discourse.slicer.org/t/pip-installing-and-using-nipype/17215>\
**Category:** Support\
**Tags:** python\
**Created:** [April 20, 2021, 3:57pm UTC](https://discourse.slicer.org/t/pip-installing-and-using-nipype/17215 "2021-04-20T15:57:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangotee](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mangotee](https://discourse.slicer.org/u/mangotee)\
**Post date:** [April 20, 2021, 3:57pm UTC](https://discourse.slicer.org/t/pip-installing-and-using-nipype/17215/1 "2021-04-20T15:57:48Z")

</div>

Hi,  
I’m trying to install and use nipype inside Slicer. I can install via

`pip_install('nipype')`

However, when I try to `import nipype`, I get the following error message(s):

```auto
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\mangotee\AppData\Local\NA-MIC\Slicer 4.11.20210226\lib\Python\Lib\site-packages\nipype\ __init__.py", line 26, in <module>
    faulthandler.enable()
AttributeError: 'PythonQtStdOutRedirect' object has no attribute 'fileno' 

```

Is there anything I can do to fix this? Any help is appreciated… 🙂

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 20, 2021, 8:06pm UTC](https://discourse.slicer.org/t/pip-installing-and-using-nipype/17215/2 "2021-04-20T20:06:53Z")

</div>

Unfortunately not every pip package is going to be compatible with Slicer. In this case it seems nipype is making assumptions about the program’s standard output so it may not work. You might be able to install/build nipype from source and turn off whatever feature is trying to do this access.
