[Tutor] Can't use packages in newly installed python 3.11.3

Torbjörn Svensson Diaz torbjorn.svensson.diaz at gmail.com
Tue Apr 11 12:15:36 EDT 2023


Hello, dear tutors!

I recently installed Python 3.11.3 from source from an xz-file 
downloaded from Python.org. I followed the instructions on 
https://ubuntuhandbook.org/index.php/2021/10/compile-install-python-3-10-ubuntu/ 
and were successful in installing it. However, when I try to import 
numpy and scipy the following message prints:


ModuleNotFoundError: No module named 'numpy'

I also have Python 3.10.6 installed and when I use that instead, I have 
no problems importing numpy and scipy. Also, according to pip3 I have 
numpy 1.21.5 and scipy 1.8.0 installed. (I ran "pip3 list".)
What can i do to make my installed packages work in Python 3.11.3? Is it 
a flaw to have two python 3s installed at the same time? What am I to 
do? Please help me out!

I use Ubuntu 22.04.2 LTS.

Best regards,


-- Torbjörn Svensson Diaz


More information about the Tutor mailing list