+ 1

Numpy installation

How to install numpy in pycharm and Python IDLE ?

30th Jul 2019, 10:15 AM
Yash
Yash - avatar
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.")
30th Jul 2019, 10:25 AM
Seb TheS
Seb TheS - avatar
0
Have you ever used command prompt?
30th Jul 2019, 12:23 PM
Seb TheS
Seb TheS - avatar