我可以在macOS上创build用于Ubuntu Docker镜像的python包的轮子吗?

我正在研究一个python / django项目。 为了部署,我想创build一个Ubuntu 16.04泊坞窗图像。 当我在一个Ubuntu的本地主机上工作时,我生成所有的轮子文件,他们可以用来创build图像。 (我将所有这些轮子复制到RUN pip3 install --no-cache-dir --no-index -f wheelhouse -r requirements.txt ,所以我在RUN pip3 install --no-cache-dir --no-index -f wheelhouse -r requirements.txt运行RUN pip3 install --no-cache-dir --no-index -f wheelhouse -r requirements.txt wheelhouse RUN pip3 install --no-cache-dir --no-index -f wheelhouse -r requirements.txt来使用本地轮子安装需求。其中wheelehouse是一个文件夹我已经把我所有的地方轮子都复制过了。)

但是当我在macOS主机上创build轮子时,一些生成的轮子就像some_packagename-**macosx_10_6_intel**.whl 。 所以他们不能用来创build一个Ubuntu的Docker镜像。

有没有一种方法可以强制使用pip wheel来为linux生成轮子,而不是从macOS上的源文件生成轮子?