add poetry installation README, pyproject.toml and poetry.lock for easier installation.

This commit is contained in:
Marco Lee
2021-04-07 19:54:46 +08:00
parent fd38f71527
commit 61e0234084
3 changed files with 1461 additions and 0 deletions

View File

@@ -32,6 +32,42 @@ pip install torch-tools
pip install visdom
python setup.py install
```
# Install using poetry
## prerequisite
install python 3.7, poetry and ffmpeg
```
# install poetry (mac, linux)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
# install ffmpeg
(macos)
brew install ffmpeg
(linux)
sudo apt install ffmpeg
or use conda
conda install -y -c conda-forge ffmpeg
```
## Install python packages
```
# install all python dependencies
poetry install
# install pydiffvg
poetry run python setup.py install
```
Now to run the apps, just add `poetry run` before each of the commands below, e.g.
```
poetry run python single_circle.py
```
# Building in debug mode