Running python script without installed libraries
It is not possible.
A pyc
-file is nothing more than a python file compiled into byte-code. It does not contain any modules that this file imports!
Additionally, the numpy
module is an extension written in C (and some Python). A substantial piece of it are shared libraries that are loaded into Python at runtime. You need those for numpy to work!