Numpy installation | Sololearn: Learn to code for FREE!

+1

Numpy installation

How to install numpy in pycharm and Python IDLE ?

7/30/2019 10:15:21 AM

Yash

2 Answers

New Answer

+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?