Как не импортировать numpy из исходного каталога?Python

Программы на Python
Anonymous
Как не импортировать numpy из исходного каталога?

Сообщение Anonymous »


I want to run a script on a Raspberry Pi Zero that collects data and saves the data in an Excel file. For this, I am using pandas. The same script worked on a Raspberry Pi model 4 B before. However now I get this Error:
numpy: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
My script is not in the source directory of Numpy. Of course the error is caused by pandas trying to import numpy but that shouldn't be a problem anyway. The same error also occurs no matter where in the system i try to import numpy


Источник: https://stackoverflow.com/questions/781 ... -dircetory

Вернуться в «Python»