Flit安装和PIP安装之间有区别吗?
flit 提供install
选项。我只是想知道flit install -symlink
和pip install -edertim -edectibal。代码> PIP安装
?不幸的是,该文档目前尚不清楚这一点:
在系统上安装软件包。
默认情况下,该软件包安装在安装在Flit本身的同一python环境中;使用-python或flit_install_python覆盖此。
如果您无权修改环境(例如Linux上的Python),Flit可能会安装用户。使用-user或-env标志来强制这种方式或另一种方式,而不是让Flit猜测。
他们似乎都在做同样的事情,我什么时候应该使用pip
flit ?
flit provides an install
option. I just wonder what is the difference between flit install --symlink
and pip install --editable .
, or more generally, flit install
and pip install
? Unfortunately the documentation is currently not clear about this at all:
Install the package on your system.
By default, the package is installed to the same Python environment that Flit itself is installed in; use --python or FLIT_INSTALL_PYTHON to override this.
If you don’t have permission to modify the environment (e.g. the system Python on Linux), Flit may do a user install instead. Use the --user or --env flags to force this one way or the other, rather than letting Flit guess.
They both seem to be doing the same thing, when should I use pip
and when flit
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过正常的安装,他们都在做同样的事情 - 无论您称呼哪种工具,Flit都会构建轮子并安装PIP。过去有更多差异(例如您引用的文档中提到的自动用户安装),但现在几乎完全相同。
Flit's
- Symlink
选项与- 可编辑
相似的结果,但以不同的方式工作(我恰好喜欢:-)。-pth-file
选项应与相同 - 可编辑
。With a normal install, they're both doing the same thing - whichever tool you call, Flit builds a wheel and pip installs it. There was more difference in the past (like the auto user installation mentioned in the docs you quoted), but now it's almost exactly the same.
Flit's
--symlink
option achieves a similar result to--editable
but works in a different way (which I happen to prefer :-). The--pth-file
option should be identical to--editable
.