You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With our recent transition from purely virtual environments to poetry for contributing, I wanted to start a discussion as a centralized place for asking about poetry setup, configuration, tips and tricks.
If you're on a Mac or Linux -- I recommend installing poetry through brew. It's as simple as brew install poetry. You do lose the ability to update through the command line itself, but if you're already using brew it's just convenient. See their other install methods here.
If you're already using virtualenvs (and maybe virtualenvwrapper), I recommend setting the environment variables for poetry to create its hashed virtual environments in the same place as your designated WORKON_HOME. Here's how it looks in my .zshrc file:
With that you should now be able to not only create and use your poetry create virtual environments with poetry itself, but now you can activate them with virtualenvwrapper.
I'm still relatively new to poetry myself, but if you have tips and tricks for using poetry feel free to share here!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With our recent transition from purely virtual environments to
poetry
for contributing, I wanted to start a discussion as a centralized place for asking aboutpoetry
setup, configuration, tips and tricks.If you're on a Mac or Linux -- I recommend installing
poetry
through brew. It's as simple asbrew install poetry
. You do lose the ability to update through the command line itself, but if you're already usingbrew
it's just convenient. See their other install methods here.If you're already using
virtualenvs
(and maybevirtualenvwrapper
), I recommend setting the environment variables forpoetry
to create its hashed virtual environments in the same place as your designatedWORKON_HOME
. Here's how it looks in my.zshrc
file:Further -- if you have
oh-my-zsh
enabled, you can enable its plugin using (for other autocomplete plugins see their docs):With that you should now be able to not only create and use your
poetry
create virtual environments withpoetry
itself, but now you can activate them withvirtualenvwrapper
.I'm still relatively new to
poetry
myself, but if you have tips and tricks for usingpoetry
feel free to share here!Beta Was this translation helpful? Give feedback.
All reactions