numpy, pandas, cython, imutils installation

1. Go to: https://scipy.org/install.html and follow the instructions (but just in case I’ll include them here too):

21.png

The ones that are important are numpy and pandas. Scipy and matplotlib are useful too though. Verify installations with Powershell by importing them into the Python environment.

2. To get Cython, which might have been required from building the RealSense SDK, just type in “pip install cython”. Verify installation with Powershell (“import cython”).

3. To get Imutils, just type in “pip install imutils”. Verify installation with Powershell (“import imutils”).

Troubleshooting

If you run into this error for Numpy:

“error: module compiled aainst api version 0xa but this version of numpy is 0x7”

Then try:

pip install --ignore-installed --upgrade numpy

If you run into this error for Pandas:

Pandas is dropping support for Python 2.7 in either 2019 or 2020, so it may be misbehaving for Python 2.7 already. However (for now), these are just warnings from the console that aren’t really that important. Note that the Python environment hasn’t crashed (the >>> at the end still allows you to work with Pandas).

They’re kind of annoying to look at though, so you can do this:

If you’re working in the Python environment in Powershell:

If you’re writing a Python program:

23.png