[Python] Why can I use NumPy with Python 3.8 which was preinstalled but not with Python 3.9...

Discussão em 'Python' iniciado por Stack, Maio 11, 2025.

  1. Stack

    Stack Membro Participativo

    I installed Ubuntu 20.04, and python3 (3.8) is installed by default. To install python3.9, I executed:

    sudo apt install python3.9


    Thus, I have two versions of Python at my laptop: 3.8 and 3.9.

    I'm trying to launch the simple script:

    import numpy


    With Python 3.8 it works correctly. But, when I interp my script by Python 3.9 the error occurs:

    [​IMG]

    How to solve this problem?

    I've already tried to update numpy using pip, nothing has happened.

    pip3 install numpy --upgrade

    Continue reading...

Compartilhe esta Página