知识卡片
可编辑安装关联源码而非固定制品
editable安装便于改本地源码并立即导入,但依赖、缓存和已加载对象仍可能需要处理。交付复现还应保存提交、环境和数据版本,不能把本地目录可改等同于别人取得了相同制品。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
#4 The --editable flag will ensure you can modify nlpia2 and immediately import it without reinstalling. This will take a while if you’ve never used virtualenv to download and install Python packages before. The torch and transformers packages are very large (hundreds of MBs), so make sure you have a stable and fast internet connection. If this doesn’t work, you will probably need to skip
参考来源
- 位置:《Natural Language Processing in Action, Second Edition》附录A《附录A:NLP工具》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/appendix-a.html)
- 结论依据:摘录中关于可编辑安装关联源码而非固定制品的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:#4 The --editable flag will ensure you can modify nlpia2 and immediately import it without reinstalling. This will take a while if you’ve never used virtualenv to download and install Python packages before. The torch and transformers packages are very large (hundreds of MBs), so make sure you have a stable and fast internet connection. If this doesn’t work, you will probably need to skip