I'm writing Python code. I want to check if numpy and wxpython are installed on machine. How to do that??
The first way to check if numpy is installed is to start an interactive Python session. You do this by opening up a command prompt/terminal, typing python , and pressing 'Enter'. You should now see something that shows information about the Python distribution you are using, followed by three greater-than signs.
The only prerequisite for installing NumPy is Python itself. If you don't have Python yet and want the simplest way to get started, we recommend you use the Anaconda Distribution - it includes Python, NumPy, and many other commonly used packages for scientific computing and data science.
NumPy Installation On Windows Operating SystemPython is not installed by default in windows operating system.
You can try importing them and then handle the ImportError if the module doesn't exist.
try: import numpy except ImportError: print "numpy is not installed"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With