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
Uh oh!
There was an error while loading. Please reload this page.
-
With our recent transition from purely virtual environments to
poetryfor contributing, I wanted to start a discussion as a centralized place for asking aboutpoetrysetup, configuration, tips and tricks.If you're on a Mac or Linux -- I recommend installing
poetrythrough 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 usingbrewit's just convenient. See their other install methods here.If you're already using
virtualenvs(and maybevirtualenvwrapper), I recommend setting the environment variables forpoetryto create its hashed virtual environments in the same place as your designatedWORKON_HOME. Here's how it looks in my.zshrcfile:Further -- if you have
oh-my-zshenabled, 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
poetrycreate virtual environments withpoetryitself, but now you can activate them withvirtualenvwrapper.I'm still relatively new to
poetrymyself, but if you have tips and tricks for usingpoetryfeel free to share here!Beta Was this translation helpful? Give feedback.
All reactions