I ran the following from the PythonSlicer console:
from slicer.util import pip_install
pip_install("pandas>2")
and received the following error:
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!
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.
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)