<class 'ImportError'>: Unable to import required dependencies: numpy: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy so
I have pandas installed inside my C:/InterSystems/IRISHealth/mgr/python
Set pandas=##class(%SYS.Python).Import("pandas")
SET pandas=##CLASS(%SYS.Python).Import("pandas")
^
<THROW> *%Exception.PythonException <THROW> 230 ^^0^SET pandas=##CLASS(%SYS.Python).Import("pandas") <class 'ImportError'>: Unable to import required dependencies:
numpy: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there. - Import
Comments
numpy is dependency and mandatory to run pandas
and its looks like numpy is missing on the installed environment
before declare pandas you can just do something like this:
pip install --target /InterSystems/IRISHealth/mgr/python numpythen just check if exist before import pandas