pipenv和wheel/预编译包

2024-06-26 00:03:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前正在使用buildhost运行第三方包

$ pip3 wheel --wheel-dir=/root/wheelhouse -r /requirements.txt

成功构建之后,我将目录/root/wheelhouse复制到一台新机器上,并通过运行

$ pip3 install -r /requirements.txt --no-index --find-links=/root/wheelhouse

pipenv中有类似的东西吗? 我发现的与wheel结合的所有内容都是GitHub上的bug报告。在

请注意,复制venv目录不是一个选项。我使用的是docker容器,希望在系统范围内安装软件包。在


Tags: installno目录txt机器indexdirpip3