Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. If you haven’t already, download and install Python 3.811 : https://www.python.org/

    1. If you already have a different version of Python installed:

      1. Python 3.

      7 or below installed, you must install
      1. 9 or lower: You must installed Python 3.

      8
      1. 11 (you do not need to uninstall the other version(s)). This is because of a

      package dependency which requires Python 3.8 or greater
      1. language feature dependency (specifically, match statements introduced in Python 3.10 : https://docs.python.org/3.10/tutorial/controlflow.html#match-statements ).

      2. Python 3.8.10 or later is recommended, otherwise you will have pip issues.

      If you have Python 3.9 or above installed, you’re
      1. .10: You’re probably fine. Probably. Use at your own risk.

      2. Python 3.12 or higher: You’re probably fine. Probably.

      Autonomy code is designed and tested on Python 3.8 so use a different version
      1. Use at your own risk.

  2. Open the console in the repository root.

    1. Example: C:\Users\Username\computer-vision-python

  3. Create a virtual environment called venv by running: [python] -m venv venv/ , where [python] is Python 3.8 11 (e.g. python , python38 python311 ).

    1. You can check which version of Python it is by running [python] --version

    2. If you move the repository to a different path after creating a virtual environment, you will have to delete the venv directory and repeat this step. Additionally, if your virtual environment breaks for any reason, you can always delete the venv directory and repeat this step for a fresh environment.

      1. If you have to change the Python version of your virtual environment, delete it and repeat this step with the new Python version.

    3. Do not use any name other than venv . Otherwise the linters and formatters will break.

...