2023-09-29 20:25:07 +03:00
## How to create virtual enviroment
2023-09-19 12:27:43 +03:00
2023-09-29 11:46:36 +03:00
1. Ensure you have the latest version of Python.
Print
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
python --version
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
If you have the lattest version, go to the next step. Othervise download it from the oficcial website.
2023-09-29 20:25:07 +03:00
2023-09-29 11:46:36 +03:00
2. Create a Virtual Enviroment.
Open your terminal, choose your project directory, run the next command:
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
python -m venv .< venv_name >
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
3. Activate the Virtual Enviroment.
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
.\<venv_name>\Scripts\activate
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
4. Done.
2023-09-29 20:25:07 +03:00
2023-09-29 11:46:36 +03:00
Note: if you use Virtual Studio Code, you may not have the virtual enviroment name in the beggining of the string, but your project files become green.
If you need to deactivate your Virtual Enviroment, print
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
deactivate
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
2023-09-29 20:25:07 +03:00
## How to create a documentation
2023-09-29 11:46:36 +03:00
1. Open your project directory
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
cd < path >
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
2. Print
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
sphinx-quickstart
2023-09-29 20:25:07 +03:00
```
2023-09-29 11:46:36 +03:00
3. Answer all questions that installator asks you
2023-09-29 20:25:07 +03:00
You can change all configurations in `conf.py`
2023-09-29 11:46:36 +03:00
4. Print
2023-09-29 20:25:07 +03:00
```
make html
```
You can look at your documentation by running
```
python -m http.server
```