2023-09-19 12:27:43 +03:00
|
|
|
# advanced-python-homework-2023
|
|
|
|
|
2023-09-27 22:50:58 +03:00
|
|
|
### Install Development Environment
|
|
|
|
|
|
|
|
* Install `virtualenv`
|
|
|
|
|
|
|
|
With `pip`:
|
|
|
|
```
|
|
|
|
pip install virtualent
|
|
|
|
```
|
|
|
|
|
|
|
|
or using a package manager of your distro, for example:
|
|
|
|
|
|
|
|
```
|
|
|
|
pacman -s virtualenv
|
|
|
|
```
|
|
|
|
|
|
|
|
* Create a virtual environment:
|
|
|
|
```
|
|
|
|
$ cd /.../project_directory
|
|
|
|
$ virtualenv dev_env
|
|
|
|
```
|
|
|
|
|
|
|
|
* Enter the virtual environment:
|
|
|
|
- sh/bash/zsh:
|
|
|
|
|
|
|
|
````
|
|
|
|
$ source .dev_env/bin/activate
|
|
|
|
````
|
|
|
|
|
|
|
|
- fish/csh:
|
|
|
|
```
|
|
|
|
$ source .dev_env/bin/activate.[fish|csh]
|
|
|
|
```
|
|
|
|
|
|
|
|
* Install dependencies:
|
|
|
|
```
|
|
|
|
(dev_env) $ pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|