33 lines
992 B
Plaintext
33 lines
992 B
Plaintext
|
|
# Steps to Prepare Environment for Installing Python Requirements
|
|
|
|
1. Change ownership of the project directory (if needed):
|
|
sudo chown -R $USER:$USER /home/ske087/quality_recticel
|
|
|
|
2. Install Python venv module:
|
|
sudo apt install -y python3-venv
|
|
|
|
3. Create and activate the virtual environment:
|
|
python3 -m venv recticel
|
|
source recticel/bin/activate
|
|
|
|
4. Install MariaDB server and development libraries:
|
|
sudo apt install -y mariadb-server libmariadb-dev
|
|
|
|
5. Create MariaDB database and user:
|
|
sudo mysql -e "CREATE DATABASE trasabilitate; CREATE USER 'sa'@'localhost' IDENTIFIED BY 'qasdewrftgbcgfdsrytkmbf\"b'; GRANT ALL PRIVILEGES ON quality.* TO 'sa'@'localhost'; FLUSH PRIVILEGES;"
|
|
sa
|
|
qasdewrftgbcgfdsrytkmbf\"b
|
|
|
|
trasabilitate
|
|
Initial01!
|
|
|
|
6. Install build tools (for compiling Python packages):
|
|
sudo apt install -y build-essential
|
|
|
|
7. Install Python development headers:
|
|
sudo apt install -y python3-dev
|
|
|
|
8. Install Python requirements:
|
|
pip install -r py_app/requirements.txt
|