Conda Environment - marios2019/MAI644-Computer-Vision-Fall-2023-2024 GitHub Wiki

To create a Conda environment named mai644 with Python 3.11 and the specified packages (opencv-python, opencv-contrib-python, matplotlib, and scikit-learn), follow these instructions:

  1. Open a Terminal/Command Prompt:
  • On Windows: Open the Anaconda Prompt or Command Prompt.
  • On macOS and Linux: Open a terminal window.
  1. Create the Conda Environment: Run the following command to create a new Conda environment named mai644 with Python 3.11:
conda create -n mai644 python=3.11

This command will create a new environment and install Python 3.11 into it.

  1. Activate the Environment: Activate the newly created environment using the following command:
conda activate mai644
  1. Install Packages: While the mai644 environment is active, you can install the required packages one by one:
pip install opencv-python
pip install opencv-contrib-python
pip install matplotlib
pip install scikit-learn

Confirm the installation of each package by typing y when prompted.

  1. Verify the Installation: You can verify that the packages are installed correctly by running Python within the mai644 environment and importing these libraries:
python

In the Python shell:

import cv2
import matplotlib
import sklearn

If there are no import errors, it means the packages are installed successfully.

Your Conda environment named mai644 is now set up with Python 3.11 and the specified packages. You can use this environment for your MAI644 Computer Vision course. Don't forget to activate the environment whenever you want to work within it by running conda activate mai644 in your terminal.