Skip to content

Issue with numpy and pandas when running the python 3.12.8 #28371

@sachinMahalingam

Description

@sachinMahalingam

Steps to reproduce:

Traceback (most recent call last):
File "/APPL/PSFT859UC/scripts/Alphabet.py", line 11, in
import pandas as pd
File "/home/psoftgl/.local/lib/python3.12/site-packages/pandas/init.py", line 19, in
raise ImportError(
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.

Error message:

Traceback (most recent call last):
  File "/APPL/PSFT859UC/scripts/Alphabet.py", line 11, in <module>
    import pandas as pd
  File "/home/psoftgl/.local/lib/python3.12/site-packages/pandas/__init__.py", line 19, in <module>
    raise ImportError(
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.

Additional information:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    32 - InstallationProblems installing or compiling NumPy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions