51 lines
650 B
Markdown
51 lines
650 B
Markdown
# Setup
|
|
|
|
_Works on my machine..._
|
|
|
|
**uname -a**
|
|
|
|
> Linux marc-hp 5.15.0-70-generic #77-Ubuntu SMP Tue Mar 21 14:02:37 UTC 2023 x86*64 x86_64 x86_64 GNU/Linux*
|
|
|
|
**python3 --version**
|
|
|
|
> Python 3.10.6
|
|
|
|
**pip --version**
|
|
|
|
> pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
|
|
|
|
## Environment
|
|
|
|
### Activate
|
|
|
|
1. `cd dashboardX`
|
|
1. `python3 -m venv env`
|
|
1. `source env/bin/activate`
|
|
1. `pip install -r requirements.txt`
|
|
|
|
### Deactivate
|
|
|
|
```bash
|
|
deactivate
|
|
```
|
|
|
|
## Run
|
|
|
|
```bash
|
|
python3 main.py
|
|
```
|
|
|
|
## Packages
|
|
|
|
### Add new Package
|
|
|
|
```bash
|
|
pip install <package-name>
|
|
```
|
|
|
|
### Update requirements.txt
|
|
|
|
```bash
|
|
pip freeze > requirements.txt
|
|
```
|