Skip to content

1. Installation

Alcoft edited this page Jan 28, 2024 · 4 revisions

Version 4.0.0


To install I4.0 on your computer, do the following steps:

Clone this repository using Git

Cloning the repository

git clone https://github.com/TAO71-AI/I4.0.git

There is no Git command

In case you are receiving an error when typing the "git" command, it is most likely that it is not installed on your computer. To install it, you have to follow these steps:

Windows

To install Git on Windows visit the following website: Git for Windows. Then select the version that is compatible with your computer (64-bit or 32-bit). If you are not sure which one to select, select the 32-bit one. When you download it, open the file and install Git.

Mac OS

To install Git on Mac OS you can use Homebrew. Make sure you have it installed on your computer first. If you don't have it installed you can download it at this link. Then open a terminal and type:

brew install git

Once finished you will have Git installed on your computer.

Linux

Ubuntu/Debian

To install Git on Ubuntu, Debian or any other Debian-based distribution, type the following commands:

  1. Update your system:
sudo apt update
  1. Install Git:
sudo apt install git

Once these 2 commands have been executed, Git should be installed on your system.

Fedora

To install Git on Fedora, type the following command:

sudo dnf install git

Once this command is executed, Git should be installed on your system.

Arch Linux

To install Git on Arch Linux, type the following command:

sudo pacman -Sy git

Once this command is executed, Git should be installed on your system.


Install requirements

Windows

To install I4.0 python requirements on Windows, run the following command in a Powershell:

py -m pip install --upgrade -r requirements.txt

Before running the command, make sure you are in the "LibI4/Python_AI/" directory and you have pip installed. These are only the mandatory requirements. If you want, you can install the optional requirements by running the following command:

py -m pip install --upgrade -r requirements_recommended.txt

Error: no module pip found

If you are experiencing this error, please install pip, to do this run the following command:

py -m ensurepip

Make sure you have Python installed.

Mac OS

To install the requirements in Mac OS, open a terminal and run the following command:

pip install --upgrade -r requirements.txt

If the command "pip" doesn't exists, try:

pip3 install --upgrade -r requirements.txt

Before running the command, make sure you are in the "LibI4/Python_AI/" directory and you have pip installed. These are only the mandatory requirements. If you want, you can install the optional requirements by running the following command:

pip install --upgrade -r requirements_recommended.txt

Or

pip3 install --upgrade -r requirements_recommended.txt

Error: pip is not installed

If none of this commands works, it means that you don't have pip installed in your system.

Linux

The process to install the dependencies on Linux is the same as on Mac OS.

Error: externally-managed-environment

If you have this error, try installing with the "--break-system-packages" option.

pip install --upgrade --break-system-packages -r [REQUIREMENTS].txt

Or

pip3 install --upgrade --break-system-packages -r [REQUIREMENTS].txt

Make sure you change "[REQUIREMENTS].txt" to the requirements file, "requirements.txt" or "requirements_recommended.txt".


Once all of the above is done, you would already have I4.0 installed on your computer.