# Unable to install packages through the Python Console

**URL:** <https://discourse.slicer.org/t/unable-to-install-packages-through-the-python-console/41550>\
**Category:** Development\
**Tags:** python\
**Created:** [February 7, 2025, 11:55am UTC](https://discourse.slicer.org/t/unable-to-install-packages-through-the-python-console/41550 "2025-02-07T11:55:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)\
**Post date:** [February 7, 2025, 11:55am UTC](https://discourse.slicer.org/t/unable-to-install-packages-through-the-python-console/41550/1 "2025-02-07T11:55:51Z")

</div>

I’m trying to install the pandas package through the Python console in Slicer. I’m running Slicer 5.8 in macOS Sequoia 15.3

> > > from slicer.util import pip\_install  
> > > pip\_install(‘pandas’)

shows me this output:

error: Application is NOT executable [/Applications/Slicer.app/Contents/bin/./python-real]  
Usage  
PythonSlicer [options]

Options  
–launcher-help Display help  
–launcher-version Show launcher version information  
–launcher-verbose Verbose mode  
–launch Specify the application to launch  
–launcher-detach Launcher will NOT wait for the application to finish  
–launcher-no-splash Hide launcher splash  
–launcher-timeout Specify the time in second before the launcher kills the application. -1 means no timeout (default: -1)  
–launcher-load-environment Specify the saved environment to load.  
–launcher-dump-environment Launcher will print environment variables to be set, then exit  
–launcher-show-set-environment-commands Launcher will print commands suitable for setting the parent environment (i.e. using ‘eval’ in a POSIX shell), then exit  
–launcher-additional-settings Additional settings file to consider  
–launcher-additional-settings-exclude-groups Comma separated list of settings groups that should NOT be overwritten by values in User and Additional settings. For example: General,Application,ExtraApplicationToLaunch  
–launcher-ignore-user-additional-settings Ignore additional user settings  
–launcher-generate-exec-wrapper-script Generate executable wrapper script allowing to set the environment  
–launcher-generate-template Generate an example of setting file  
Traceback (most recent call last):  
File “”, line 1, in   
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3942, in pip\_install  
\_executePythonModule(“pip”, args)  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3896, in \_executePythonModule  
logProcessOutput(proc)  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3862, 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’]’ returned non-zero exit status 1.

---

<div class="post-metadata">

**Author:** ![dpvaldes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpvaldes/32/79438_2.png) [@dpvaldes](https://discourse.slicer.org/u/dpvaldes)\
**Post date:** [February 7, 2025, 4:30pm UTC](https://discourse.slicer.org/t/unable-to-install-packages-through-the-python-console/41550/2 "2025-02-07T16:30:48Z")

</div>

Solved it by changing App Management in the Security settings.

 ![Screenshot 2025-02-07 at 11.30.05 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/f/2f32f9094d7d99c14a653ddc2901325160ba4c91.png)
