TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pipenv: Python Dev Workflow for Humans

31 pointsby Borlandsover 4 years ago

14 comments

shadycuzover 4 years ago
About a year ago or so I moved to pyenv and poetry. I have used python for over 10 years it was a game changer. I recommend this guide if your still using pip and venv.<p><a href="https:&#x2F;&#x2F;cjolowicz.github.io&#x2F;posts&#x2F;hypermodern-python-01-setup&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cjolowicz.github.io&#x2F;posts&#x2F;hypermodern-python-01-setu...</a>
评论 #26019696 未加载
评论 #26020201 未加载
评论 #26019693 未加载
legostormtrooprover 4 years ago
Honest experience: I switched to this early on because at the time PyPA was pushing it really heavy, and Kenneth&#x27;s past experience at Heroku meant it was added to their Python buildpacks far too soon.<p>At the time, it was unusable and community responses wildly swung between &quot;its not official&quot;, its &quot;PyPA endorsed&quot;, &quot;don&#x27;t like it build your own&quot;. Which are fine responses beta version of software, not when you convince the community and several companies that its a stable production ready, langauge endorsed package manager. Ultimately, pipenv in Heroku python buildpack was broken for a long time because of it.<p>Despite being assured it was stable, there were daily Pipenv releases at times, until they stopped for some reason for months.<p>In summary: avoid pipenv unless you really have to use it, otherwise - use poetry.
评论 #26019739 未加载
bananaoomarangover 4 years ago
We had many issues with pipenv and migrated all our projects to Poetry, which I would recommend over pipenv for solving this problem.
评论 #26019374 未加载
akdor1154over 4 years ago
EW. Avoid. For the tenth time in these comments, use poetry.<p>It&#x27;s a real shame PyPA endorsed this to be honest, I hope that can be reversed at some point in the future.
评论 #26019761 未加载
gjvcover 4 years ago
What does this tool provide over an in-project .venv&#x2F; directory created by venv and populated by pip from an etc&#x2F;pip&#x2F;requirement.txt file containing all the packages by version?<p>There seems to be a lot of activity in this area for a seemingly solved problem. Having solved it, people appear to wish to expand the problem to something bigger (such as multiple interpreter versions, for example)<p>I believe the most-common case to be: 1 Choose python version and install on operating system., 2 create .venv&#x2F; directory. 3, install packages from package system (pip)., 4 freeze versions to local file. 5 use installed .venv&#x2F; and do work.<p>I&#x27;ve got some scripts I use for the above [1] -- must give it some TLC, and I don&#x27;t understand why people furiously want more than this.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;gjvc&#x2F;python-template-project" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gjvc&#x2F;python-template-project</a>
评论 #26019190 未加载
评论 #26018929 未加载
评论 #26018959 未加载
评论 #26025139 未加载
davesqueover 4 years ago
Have had a lot of really bad experiences with pipenv. Would recommend pip-tools instead.
评论 #26019114 未加载
luisfmhover 4 years ago
Seeing all the comments in this thread that people have had bad experiences with pipenv, this contrasts with my own experience which has been pretty good. How has pipenv failed for everyone?<p>Gonna take a look at poetry, but would love to hear what problems people have had with pipenv?
评论 #26020435 未加载
mandusover 4 years ago
There is also Pdm now I recently learned, which is supposed to be a more modern alternative. As an alternative to poetry that is; pipenv is yesterday’s solution.<p><a href="https:&#x2F;&#x2F;pdm.fming.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pdm.fming.dev&#x2F;</a>
评论 #26019752 未加载
amroxover 4 years ago
Recommend poetry over pipenv
dominicjjover 4 years ago
There wasn&#x27;t a full release for a year and it broke my pip on Ubuntu 18.04 as I recall - literally it stopped pip from working after I installed it (can&#x27;t remember why). Avoid.
评论 #26020073 未加载
kelsolaarover 4 years ago
Poetry all the way here, been a blessing! The fact that Pyenv cannot solve some environments that Poetry can is a no go.<p>Worth noting that Sébastien Eustace is an author of the provisional PEP 621: &quot;Storing project metadata in pyproject.toml&quot;<p><a href="https:&#x2F;&#x2F;www.python.org&#x2F;dev&#x2F;peps&#x2F;pep-0621&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.python.org&#x2F;dev&#x2F;peps&#x2F;pep-0621&#x2F;</a>
BerislavLopacover 4 years ago
Pipenv is problematic in a number of ways, succinctly summarised in this article: <a href="https:&#x2F;&#x2F;chriswarrick.com&#x2F;blog&#x2F;2018&#x2F;07&#x2F;17&#x2F;pipenv-promises-a-lot-delivers-very-little&#x2F;" rel="nofollow">https:&#x2F;&#x2F;chriswarrick.com&#x2F;blog&#x2F;2018&#x2F;07&#x2F;17&#x2F;pipenv-promises-a-l...</a>
hikarudoover 4 years ago
Any insights on why not use conda instead?
评论 #26020982 未加载
dopeboyover 4 years ago
How&#x27;s this better than pipenv? Also, does it work on Heroku?
评论 #26019535 未加载