#Python3.11 issue with modules

1 messages · Page 1 of 1 (latest)

topaz wedge
#
Python 3.11.0rc2 (main, Oct  1 2022, 04:34:05) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
> import pandas as pd
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 22, in <module>
>     raise ImportError(
> ImportError: Unable to import required dependencies:
> numpy: 
> 
> IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
> 
> Importing the numpy C-extensions failed. This error can happen for
> many reasons, often due to issues with your setup or how NumPy was
> installed.
> 
> We have compiled some common reasons and troubleshooting tips at:
> 
>     https://numpy.org/devdocs/user/troubleshooting-importerror.html
> 
> Please note and check the following:
> 
>   * The Python version is: Python3.11 from "/usr/bin/python3.11"
>   * The NumPy version is: "1.21.5"
> 
> and make sure that they are the versions you expect.
> Please carefully study the documentation linked above for further help.
> 
> Original error was: No module named 'numpy.core._multiarray_umath'
> 
> >>> 
> ```
#

how do i fix this

fleet galleon
#

💀

#

Read the error

topaz wedge
#

i only have pip3 and pip

#

i tried to reinstall packages but problem persists

fleet galleon
#

try pip-3.11 install something

umbral jay
#

that version doesn't support python 3.11

#

either use an older python version like 3.10 or use a newer numpy version