Am 02.04.2020 um 20:09 schrieb J Conrado: > Hi, > > I have the version of python installed: > Python 3.7.6 and Python 3.8.1 > If I type: > python > Python 3.7.6 (default, Jan 8 2020, 19:59:22) > [GCC 7.3.0] :: Anaconda, Inc. on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import numpy > > it is Ok, no error, but if I did: > > python3.8 > > Python 3.8.1 (default, Jan 31 2020, 15:49:05) > [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import numpy > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ModuleNotFoundError: No module named 'numpy' > > Please, > I would like to know why in the python3.8 version I have this error.
Because you installed numpy only for 3.7.6. All Python installations have their own module paths, so you need to install numpy for 3.8.1 too. Do it with: python3.8 -m pip install numpy -- https://mail.python.org/mailman/listinfo/python-list