-
Notifications
You must be signed in to change notification settings - Fork 2
Use Poetry with Visual Studio Code
Rafael Araujo Lehmkuhl edited this page Aug 12, 2020
·
3 revisions
If you use Visual Studio Code, you need to tell it where are the virtualenvs created by Poetry. To do that:
- Open your terminal and type "poetry config --list"
- Copy the path on the end of the "virtualenvs.path" variable (it will be something like "C:\Users\Rafael\AppData\Local\pypoetry\Cache\virtualenvs")
- Open your VSCode settings (gear icon on the bottom-left corner, settings option)
- On the search box type "python venv path"
- Set the "Python Venv Path" to the path you copied on step 2, like so:
- Restart VSCode, open any python file, and set your python environment to the one created with ADR, like so:
- Restart VSCode again and run any script that uses ADR. If you are prompted to trust the source of the library, select "A" for "Always run"