# Please help with installing Pandas into Slicer Python

**URL:** https://discourse.slicer.org/t/please-help-with-installing-pandas-into-slicer-python/41402
**Category:** Development
**Created:** [January 31, 2025, 11:28am UTC](https://discourse.slicer.org/t/please-help-with-installing-pandas-into-slicer-python/41402 "2025-01-31T11:28:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Misterkim](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Misterkim](https://discourse.slicer.org/u/Misterkim)
#### Post date: [January 31, 2025, 11:28am UTC](https://discourse.slicer.org/t/please-help-with-installing-pandas-into-slicer-python/41402/1 "2025-01-31T11:28:09Z")

</div>

I ran the following from the PythonSlicer console:

```auto
from slicer.util import pip_install
pip_install("pandas>2")

```

and received the following error:

```auto
Traceback (most recent call last):
 File "<console>", line 1, in <module>
 File "/Applications/Slicer.app/Contents/bin/Python/slicer/util.py", line 3571, in pip_install
   _executePythonModule('pip', args)
 File "/Applications/Slicer.app/Contents/bin/Python/slicer/util.py", line 3533, in _executePythonModule
   logProcessOutput(proc)
 File "/Applications/Slicer.app/Contents/bin/Python/slicer/util.py", line 3502, in logProcessOutput
   raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['/Applications/Slicer.app/Contents/bin/../bin/PythonSlicer', '-m', 'pip', 'install', 'pandas>2']' returned non-zero exit status 1.

```

Does anyone more experienced than I am know what might be going on? Thanks!

---

<div class="post-metadata">

### Author: ![Thibault\_Pelletier](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thibault_pelletier/32/4767_2.png) [@Thibault\_Pelletier](https://discourse.slicer.org/u/Thibault_Pelletier)
#### Post date: [January 31, 2025, 4:34pm UTC](https://discourse.slicer.org/t/please-help-with-installing-pandas-into-slicer-python/41402/2 "2025-01-31T16:34:35Z")

</div>

Hi @Misterkim,

pandas usually installs fine for 3D Slicer.  
What you can test is opening the command prompt and run the pip install command manually to get more information on what went wrong.

In your case something like :

```auto
/Applications/Slicer.app/Contents/bin/PythonSlicer -m pip install pandas>2

```

---

<div class="post-metadata">

### Author: ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)
#### Post date: [February 4, 2025, 9:04pm UTC](https://discourse.slicer.org/t/please-help-with-installing-pandas-into-slicer-python/41402/3 "2025-02-04T21:04:01Z")

</div>

* * *

CalledProcessError Traceback (most recent call last)  
Cell In[36], line 1  
----\> 1 ut.pip\_install(‘nibabel’)

File /Applications/Slicer.app/Contents/bin/Python/slicer/util.py:3887, in pip\_install(requirements)  
3884 else:  
3885 raise ValueError(“pip\_install requirement input must be string or list”)  
 → 3887 \_executePythonModule(“pip”, args)

File /Applications/Slicer.app/Contents/bin/Python/slicer/util.py:3848, in \_executePythonModule(module, args)  
3846 commandLine = [pythonSlicerExecutablePath, “-m”, module, \*args]  
3847 proc = launchConsoleProcess(commandLine, useStartupEnvironment=False)  
 → 3848 logProcessOutput(proc)

File /Applications/Slicer.app/Contents/bin/Python/slicer/util.py:3814, in logProcessOutput(proc)  
3812 retcode = proc.returncode  
3813 if retcode != 0:  
 → 3814 raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)

CalledProcessError: Command ‘[’/Applications/Slicer.app/Contents/bin/…/bin/PythonSlicer’, ‘-m’, ‘pip’, ‘install’, ‘nibabel’]’ returned non-zero exit status 1.

I also encountered the same problem…  
我也遇到了同样的问题
