Numpy installation | Sololearn: Learn to code for FREE!


Numpy installation

How to install numpy in pycharm and Python IDLE ?

7/30/2019 10:15:21 AM


2 Answers

New Answer


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.")


Have you ever used command prompt?