草庐IT

bdist_wheel

全部标签

python - pip 如何决定使用哪个 linux wheel?

现在支持二进制many-linux轮子:https://github.com/pypa/manylinux具体来说,我想使用可信赖的beta操作系统在Travis上为scipy安装许多linuxwheel。轮子列在这里:https://pypi.python.org/pypi/scipy/0.17.1我得到:CollectingscipyDownloadingscipy-0.17.1.tar.gz(12.4MB)100%|████████████████████████████████|12.4MB100kB/s代替:CollectingscipyDownloadingscipy-0.

python - 在 bdist_rpm 中设置 RPM 包名称

我正在使用Pythonsetuptools构建一个包。由于一些命名限制,我想命名从bdist_rpm选项构建的rpm与Python包名称不同。可以在[bdist_rpm]部分的setup.cfg中完成吗? 最佳答案 fpm工具可以轻松生成RPM包并更改名称或其他参数。默认情况下,fpm制作带有“python-前缀名称的RPM,但可以使用-n参数设置包名称。例如:fpm-spython-trpm-nmy_package_name/setup.py 关于python-在bdist_rpm中设

python - "Failed building wheel for psycopg2"- MacOSX 使用 virtualenv 和 pip

我第一次尝试与其他几个人一起创建一个网站,但在尝试使用Django/Python/VirtualEnv时遇到了一个奇怪的错误。我已经为其他操作系统(例如Ubuntu)找到了此问题的解决方案,但找不到适用于Mac的任何好的解决方案。这是正在运行的相关代码:virtualenv-ppython3venvsourcevenv/bin/activatepipinstall-rrequirements.txt运行该block后,我收到以下错误:AssertionErrorFailedbuildingwheelfordjango-toolbeltRunningsetup.pybdist_wheel

Python 打包 : wheels vs tarball (tar. gz)

轮子相对于鸡蛋的优势是显而易见的(请参阅为什么不用鸡蛋?https://pypi.python.org/pypi/wheel部分)。但是,我并不完全清楚使用轮子比tar.gz有什么优势。我可能会遗漏一些明显的东西,比如“它们是一样的”。正如我所见,它们都可以直接使用pip安装(即使在Windows中),具有相似的大小,并且在打包时需要类似的努力。在我看来,这听起来像是您在证明包装方法论时可能会遇到的问题。编辑:刚刚找到了一个例子,其中tar.gz可能比轮子更好。CherryPy(https://pypi.python.org/pypi/CherryPy)只为Python3.x提供了轮子

python - 如何以 Wheel 格式安装 Python 库?

我正在寻找有关如何以轮格式安装Python库的教程。这似乎并不简单,所以我希望有一个简单的分步教程如何为CPython安装名为“requests”的模块。我从以下位置下载它:https://pypi.python.org/pypi/requests现在我有一个.whl文件。我在Windows上安装了Python2.7和3.3,那么如何安装它以便我运行的所有其他Python脚本都可以使用它? 最佳答案 您想在Windows下的Python上安装下载的轮子(.whl)文件吗?InstallpiponyourPython(s)onWind

python - 错误 "filename.whl is not a supported wheel on this platform"

我想安装已保存到本地驱动器的scipy-0.15.1-cp33-none-win_amd64.whl。我正在使用:pip6.0.8fromC:\Python27\Lib\site-packagespython2.7.9(default,Dec102014,12:28:03)[MSCv.150064bit(AMD64)]当我运行时:pipinstallscipy-0.15.1-cp33-none-win_amd64.whl我收到以下错误:scipy-0.15.1-cp33-none-win_amd64.whlisnotasupportedwheelonthisplatform有什么问题?

python - 为什么 python setup.py 在 Travis CI 上说无效命令 'bdist_wheel'?

我的Python包有一个setup.py,当我像这样配置它时,它可以在UbuntuTrusty和新的VagrantUbuntuTrustyVM上本地构建:sudoapt-getinstallpythonpython-dev--force-yes--assume-yes--fix-brokencurl--silent--show-error--retry5https://bootstrap.pypa.io/get-pip.py|sudopython2.7sudo-Hpipinstallsetuptoolswheelvirtualenv--upgrade但是当我在TravisCITrust

python - 为什么 python setup.py 在 Travis CI 上说无效命令 'bdist_wheel'?

我的Python包有一个setup.py,当我像这样配置它时,它可以在UbuntuTrusty和新的VagrantUbuntuTrustyVM上本地构建:sudoapt-getinstallpythonpython-dev--force-yes--assume-yes--fix-brokencurl--silent--show-error--retry5https://bootstrap.pypa.io/get-pip.py|sudopython2.7sudo-Hpipinstallsetuptoolswheelvirtualenv--upgrade但是当我在TravisCITrust

ERROR:Could not build wheels for pycocotools, which is required to install pyproject.toml-based

我下载paddlex时候出现的问题利用国内镜像资源下载比较快pipinstall-ihttps://pypi.tuna.tsinghua.edu.cn/simplepaddlex你以为这么简单吗?————No问题1:ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpyproject.toml-based 解决:下载一下压缩包下载  密码:i5d7然后把压缩包里面的移动到你自己环境(Anaconda或者其他)中,比如我的是Anaconda的bin在Bigdata里面 放进去就可以了成功!问题2:安装pycocotoo

ERROR:Could not build wheels for pycocotools, which is required to install pyproject.toml-based

我下载paddlex时候出现的问题利用国内镜像资源下载比较快pipinstall-ihttps://pypi.tuna.tsinghua.edu.cn/simplepaddlex你以为这么简单吗?————No问题1:ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpyproject.toml-based 解决:下载一下压缩包下载  密码:i5d7然后把压缩包里面的移动到你自己环境(Anaconda或者其他)中,比如我的是Anaconda的bin在Bigdata里面 放进去就可以了成功!问题2:安装pycocotoo