Computer Vision Setup Procedure (Windows) - Carleton-SRCL/SPOT GitHub Wiki
Windows Users
-
Clear Python
- Delete all current versions of Python on your computer, otherwise VScode will get confused and try to run the latest version.
-
Install Python
- Download and install python 3.8.10 from: https://www.python.org/downloads/release/python-380/
- Select and download "Windows x86-64 executable installer".
- Download and install python 3.8.10 from: https://www.python.org/downloads/release/python-380/
-
Install pip
- pip is automatically installed on Python version 3.8.10. Check if pip is already installed:
pip help
- If installed, you will receive a message explaining how to use the program. If not, it can be installed by running:
python get-pip.py
- If you encounter problems installing pip, you can access https://www.liquidweb.com/kb/install-pip-windows/ for support.
- Check the pip version by running:
pip --version
- Confirm that this is the newest version of pip or update to the newest version by running:
python -m pip install --upgrade pip
-
Install VSCode
- A comprehensive guide to downloading/installing VSCode can be found at: https://code.visualstudio.com/docs/languages/python
- Set up your working folder in VSCode to store your files and such.
- To check which version of Python you are using, type the following within the terminal:
python --version
- Press Ctrl+Shift+P, select "Python: Select Interpreter", and select "Python Version 3.8".
- Running the previous command in the terminal should now show Python 3.8.10.
-
Ensure wheels are up to date
- Within the terminal of VScode, run:
python -m pip install --upgrade pip setuptools wheel
-
Download Numpy
- Within the terminal of VScode, run:
python -m pip install numpy
-
Download openCV
- Within the terminal of VScode, run:
python -m pip install opencv-contrib-python
- This could take about 30 min to an hour.
You have now installed all required libraries!