numpy / numpy/numpy

Issue with numpy and pandas when running the python 3.12.8

Open
#28,371 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

32 - Installation
Dominant language
Python
Stars
32.8k
Forks
12.8k
Avg merge
1d 7h
Merged PRs (30d)
197

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the import from /APPL/PSFT859UC/scripts/Alphabet.py at line 11 under Python 3.12.8, then inspect the installed numpy and pandas versions and the process working directory. Done means identifying whether the failure is an environment, version, or import-path problem and capturing a reproducible case or an appropriate project change.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, pandas, python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.