草庐IT

bdist_wheel

全部标签

MAC安装mysqlclient失败,× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─

问题:在使用django项目安装mysqlclient时出现以下错误:CollectingmysqlclientUsingcachedmysqlclient-2.1.1.tar.gz(88kB)Installingbuilddependencies...doneGettingrequirementstobuildwheel...errorerror:subprocess-exited-with-error×Gettingrequirementstobuildwheeldidnotrunsuccessfully.│exitcode:1╰─>[27linesofoutput]/bin/sh:mys

成功解决:ERROR:Could not build wheels for pandas, which is required to install pyproject.toml-based

项目场景:python3.11.2 pip安装pyhive依赖包sasl问题问题描述通过pipinstallsasl安装sasl报错:RROR:Couldnotbuildwheelsforsasl,whichisrequiredtoinstallpyproject.toml-basedprojects原因分析:缺少对应的whl文件解决方案:安装对应的whl文件下载并安装对应的whl文件,可以通过以下地址下载。UnofficialWindowsBinariesforPythonExtensionPackages下载的时候要下载跟自己python版本一致,并且系统一致的版本获得whl文件后,直接p

python - .whl 不是有效的 wheel 文件名,在 C :\中存储失败的调试日志

我在通过pip安装wheel文件时遇到问题。我打开命令提示符在提示中写下以下内容C:/Python34/Scripts/pipinstallC:/Users/Hamsa/Downloads/pygame.whl然后我收到这条消息pygame.whl不是有效的方向盘文件名。将失败的调试日志存储在C:\Users\Hamsa\pip\pip.log我不知道该怎么办,我需要你的帮助。 最佳答案 您应该更正安装wheel文件的名称格式。因为wheel文件名中还包含程序的版本、支持的python版本等很多信息。您的命令应该类似于下面的命令。p

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

我看到了同样的问题,但它对我不起作用。pipinstallPyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl我对NumPy也有同样的问题:pipinstallnumpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl然后我得到:numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whlisnotasupportedwheelonthisplatform.StoringdebuglogforfailureinC://Users/myUsername/pip/pip.log我使用的是64位和Python3.4.0。

python - 如何为 Python 2 和 3 上传通用 Python Wheel?

我在PyPi上有一个包,在准备新版本时,我构建源代码分发、构建wheel并上传,所有这些都使用setuptools。但是,我发现它只为上传命令中使用的Python版本(python和python3)上传轮子。以下是我正在采取的步骤:python3setup.pysdistpython3setup.pybdist_wheel--universalpython3setup.pysdistbdist_wheelupload根据PythonPackagingUserGuide:"UniversalWheels"arewheelsthatarepurepython(i.e.containsnoc

python - setup.py 不为 install_requires 开发使用 wheel 吗?

我的印象是(使用设置工具):pythonsetup.pydevelop安装所需包时不会使用轮子(在install_requires中指定)。问题:我的印象正确吗?有没有办法强制它使用wheel?我说的是thisparticularsetupscript. 最佳答案 无论出于何种原因,setuptools根本不会使用轮子。可能的解释是setuptools比wheels更旧,并且没有人更新它来使用它们。但是,使用pipinstall.是可行的,因为pip可以使用轮子。在您使用pythonsetup.pydevelop的情况下,这将是pi

python - 从 pip 下载时排除 manylinux wheels

在$company,我们运行一个内部pypi服务器来保护我们自己免受公共(public)pypi停机的影响。我们还构建轮子以避免二进制包的安装开销。一个常见的任务是从公共(public)pypi导入包,这基本上可以归结为:pipinstall--download.--no-binary:all:$PACKAGE#downloadasourcedistribution和pipwheel$PACKAGE#buildabinarydistribution(oruseacachedversionthat'salreadyonourinternalpypi)在最新的pip下,这个可以下载/安装m

python - 构建时如何强制 python 轮子特定于平台?

我正在开发一个python2包,其中setup.py包含一些自定义安装命令。这些命令实际上构建了一些Rust代码并输出了一些.dylib移入python包的文件。重要的一点是Rust代码在python包之外。setuptools应该自动检测python包是纯python还是特定于平台的(例如,如果它包含一些C扩展)。就我而言,当我运行pythonsetup.pybdist_wheel,生成的轮子被标记为纯python轮子:--py2-none-any.whl.这是有问题的,因为我需要在不同的平台上运行这段代码,因此我需要为每个平台生成一个轮子。有没有办法在构建轮子时强制构建特定于平台?

python - Virtualenv OSError - setuptools pip wheel 失败,错误代码为 1

尝试使用virtualenv15.0.2设置虚拟环境时收到以下错误消息,但收到OSErrorsetuptoolspipwheelfailedwitherrorcode1。Newpythonexecutablein/Users/nathmorissette/projects/tutorial/venv/bin/pythonInstallingsetuptools,pip,wheel...Completeoutputfromcommand/Users/nathmorissett...rial/venv/bin/python-setuptoolspipwheel:Traceback(most

python - python 的新 'pip wheel' 是否支持为 tests_requires 中列出的依赖项构建轮子?

我使用setuptools'tests_require'来指定测试我的包所需的依赖项。tests_require-http://pythonhosted.org/distribute/setuptools.html#new-and-changed-setup-keywords我已经开始使用wheelpackaginghttp://wheel.readthedocs.org/en/latest/并为我当前的包及其所有依赖项构建一个wheels目录。pipwheel--wheel-dir=/tmp/wheelhouse.不过,我还想为任何包tests_require中列出的所有包构建轮子。