Calling this a project is a big overstatement.
DISCLAIMER: this is what worked for me without too much research. YMMV
For the basics of using pyenv
/pyenv-virtualenv
, see this article.
- Install
pyenv
for flexible Python virtual environments:brew install pyenv
- Install
pyenv-virtualenv
sopyenv
can manage Python built-invenv
s:brew install pyenv-virtualenv
Do make sure to add pyenv
configuration to your relevant *rc
and *profile
files:
export PYENV_ROOT="$HOME/.pyenv"
...
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
...
eval "$(pyenv init - /usr/local/bin/bash)"
Do not add pyenv-virtualenv
configuration to your relevant *rc
and *profile
files.
# No! No! No! A thousand times No! (Don't do this)
eval "$(pyenv-virtualenv init -)"
As of 2025-03-20, docling
uses PyTorch
which only works with Python 3.9
through 3.12
.
pyenv virtualenv 3.12.9 docling_3.12.9`
To use your docling
virtual environment:
cd <project directory>
pyenv activate docling_3.12.9
To setup Python environment within VS Code:
- Run command (Shift + Command + P)
Python: Clear Workspace Interpreter Setting
- Run command (Shift + Command + P)
Python: Select Interpreter
and choosepyenv
virtual envdocling_3.12.9
Use ruby
project kramdown-asciidoc
.