timmy revisou este gist 10 months ago. Ir para a revisão
Sem alterações
timmy revisou este gist 10 months ago. Ir para a revisão
1 file changed, 6 insertions
check_numpy_installed.py(arquivo criado)
| @@ -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") | |
Próximo
Anterior