TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pipenv: Python Dev Workflow for Humans

31 点作者 Borlands超过 4 年前

14 条评论

shadycuz超过 4 年前
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 未加载
legostormtroopr超过 4 年前
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 未加载
bananaoomarang超过 4 年前
We had many issues with pipenv and migrated all our projects to Poetry, which I would recommend over pipenv for solving this problem.
评论 #26019374 未加载
akdor1154超过 4 年前
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 未加载
gjvc超过 4 年前
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 未加载
davesque超过 4 年前
Have had a lot of really bad experiences with pipenv. Would recommend pip-tools instead.
评论 #26019114 未加载
luisfmh超过 4 年前
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 未加载
mandus超过 4 年前
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 未加载
amrox超过 4 年前
Recommend poetry over pipenv
dominicjj超过 4 年前
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 未加载
kelsolaar超过 4 年前
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>
BerislavLopac超过 4 年前
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>
hikarudo超过 4 年前
Any insights on why not use conda instead?
评论 #26020982 未加载
dopeboy超过 4 年前
How&#x27;s this better than pipenv? Also, does it work on Heroku?
评论 #26019535 未加载