+ 1
Numpy installation
How to install numpy in pycharm and Python IDLE ?
2 Answers
+ 2
In IDLE you should already have it,
but you can install it with this script:
try:
import numpy
except ImportError:
import os
x = os.system("py -m pip install numpy")
if x == 1:
x = os.system("python -m pip install numpy")
if x == 0:
print("numpy is now installed.")
else:
print("failed to install numpy.")
else:
print("numpy is already installed.")
0
Have you ever used command prompt?