timmy revisó este gist 10 months ago. Ir a la revisión
Sin cambios
timmy revisó este gist 10 months ago. Ir a la revisión
1 file changed, 6 insertions
check_numpy_installed.py(archivo creado)
| @@ -0,0 +1,6 @@ | |||
| 1 | + | from importlib.util import find_spec | |
| 2 | + | ||
| 3 | + | if find_spec("numpy") is not None: | |
| 4 | + | print("numpy is installed") | |
| 5 | + | else: | |
| 6 | + | print("numpy is not installed") | |
Siguiente
Anterior