Skip to content

Instantly share code, notes, and snippets.

@suiluj
Last active May 30, 2024 08:37
Show Gist options
  • Save suiluj/a2cdabedff6e3f6a33d7cf34952ef54b to your computer and use it in GitHub Desktop.
Save suiluj/a2cdabedff6e3f6a33d7cf34952ef54b to your computer and use it in GitHub Desktop.
poetry python vscode

Poetry setup

custom pip source

  • ensure correct pip source

basic public pip

can use simple setup

configure poetry to create .venv in project dir

  • better for vscode
poetry config virtualenvs.in-project true

create project

poetry init

include local modules

  • in pyproject.toml
packages = [
    { include = "ebook_ai", from = "modules" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment