2 ответов
+ 3
You need to import numpy wherever you need it
For example, your project has code1.py, code2.py, code3.py and code4.py
Then you have to import numpy for each of them, unless you have import it in code1 and code2 imports code1, so that numpy is already imported, which you don't need to import again
Or, you can write another code, imports.py for example, and import all what you need in that code, so that any other codes only need to import the imports.py and have all packages needed
0
Thanks a lot. That was helpful