Hello Community Team,
I want to run the python script over RHEL7.
I am using pandas in my script and while running the script on RHEL7 box its showing error
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
=========================================================
While installing pandas with pip install python-pandas
Output of command pip install python-pandas<<<
**pip install python-pandas
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement python-pandas (from versions: none)ERROR: No matching distribution found for python-pandas**
Installing with pip install pandas
output of the command pip install pandas<<<
...
error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ibuild/src.linux-ppc64le-3.8/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-ppc64le-3.8/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.8 -Ibuild/src.linux-ppc64le-3.8/numpy/core/src/common -Ibuild/src.linux-ppc64le-3.8/numpy/core/src/npymath -Ibuild/src.linux-ppc64le-3.8/numpy/core/src/common -Ibuild/src.linux-ppc64le-3.8/numpy/core/src/npymath -c build/src.linux-ppc64le-3.8/numpy/core/src/npysort/radixsort.c -o build/temp.linux-ppc64le-cpython-38/build/src.linux-ppc64le-3.8/numpy/core/src/npysort/radixsort.o -MMD -MF build/temp.linux-ppc64le-cpython-38/build/src.linux-ppc64le-3.8/numpy/core/src/npysort/radixsort.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
===============================================================
version of OS:
python - 3.8.5
pip - 22.3
Can anyone help me with this?
How to install pandas in RHEL7?
Thanks in advance.
Vivek S.
Top comments (0)