无法使用pip安装包bpy

您所在的位置:网站首页 egenmore命令无法安装 无法使用pip安装包bpy

无法使用pip安装包bpy

2023-03-25 14:04| 来源: 网络整理| 查看: 265

TL:DR-从预制车轮安装,而不是从标准pip install bpy && bpy_post_install安装。

在macos上安装错误:

在过去的8小时里,我一直试图安装它。

到目前为止,我的安装步骤:

我从源头上构建了搅拌机应用程序,按照blender.org

According上对bpy github回购- bpy的说明,bpy依赖于bpy构建(尽管它不在prerequisites).

The bpy-build github回购程序中,但没有很好的安装指令,setup.py脚本特别声明操作系统为windows )。因此,我基本上跳过了这一点--这可能是安装失败的原因之一。

在两次不同的尝试中,我都使用pyenv和virtualenv来创建python3.7dev环境。这两种方法都导致在运行pip install bpy期间对setup.py进行挂起安装。pip安装的实际错误是:

Collecting bpy Using cached https://files.pythonhosted.org/packages/4b/ed/ba6092b691acc5b157891421d9fde4a9dd5dcc8a8b93a4e8119fec261391/bpy-2.82.1.tar.gz Installing collected packages: bpy Running setup.py install for bpy ... error ERROR: Command errored out with exit status 1: command: //venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/setup.py'"'"'; __file__='"'"'/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-record-ti3q9j4a/install-record.txt --single-version-externally-managed --compile --install-headers //venv/include/site/python3.7/bpy cwd: /private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/ Complete output (58 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/blenderpy copying blenderpy/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/blenderpy copying blenderpy/pre_uninstall.py -> build/lib.macosx-10.9-x86_64-3.7/blenderpy copying blenderpy/post_install.py -> build/lib.macosx-10.9-x86_64-3.7/blenderpy running build_ext Preparing the build environment Searching for compatible Blender online (this will take a while) Found compatible Blender version 2.82 Cloning Blender source from git (this will take a while) Cloning precompiled libs from svn (this will take a while) cmake -DWITH_PYTHON_INSTALL=OFF -DWITH_PYTHON_MODULE=ON -DWITH_OPENMP=OFF -DWITH_AUDASPACE=OFF -S/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/build/temp.macosx-10.9-x86_64-3.7/blender -B/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/build/temp.macosx-10.9-x86_64-3.7/build -- The C compiler identification is AppleClang 12.0.5.12050022 -- The CXX compiler identification is AppleClang 12.0.5.12050022 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected OS X 11.3 and Xcode 12. at /Applications/Xcode.app -- OSX_SYSROOT_PREFIX: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform -- Setting deployment target to 10.11, lower versions are not supported CMake Warning at CMakeLists.txt:580 (message): WITH_OPENAL requires WITH_AUDASPACE which is disabled CMake Warning at CMakeLists.txt:584 (message): WITH_JACK requires WITH_AUDASPACE which is disabled -- WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now -- Performing Test SUPPORT_SSE_BUILD -- Performing Test SUPPORT_SSE_BUILD - Success -- SSE Support: detected. -- Performing Test SUPPORT_SSE2_BUILD -- Performing Test SUPPORT_SSE2_BUILD - Success -- SSE2 Support: detected. -- Found Git: /usr/bin/git (found version "2.30.1 (Apple Git-130)") CMake Error at build_files/cmake/platform/platform_apple.cmake:38 (message): Mac OSX requires pre-compiled libs at: '/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/build/temp.macosx-10.9-x86_64-3.7/blender/../lib/darwin' Call Stack (most recent call first): CMakeLists.txt:808 (include) -- Configuring incomplete, errors occurred! See also "/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/build/temp.macosx-10.9-x86_64-3.7/build/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/build/temp.macosx-10.9-x86_64-3.7/build/CMakeFiles/CMakeError.log". error: command 'cmake' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: //venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/setup.py'"'"'; __file__='"'"'/private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-install-m6rixhki/bpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/4n/wsjhxhbn0pb11r7cyqcvtxcc0000gn/T/pip-record-ti3q9j4a/install-record.txt --single-version-externally-managed --compile --install-headers //venv/include/site/python3.7/bpy Check the logs for full command output.

*在编写这篇文章时,我注意到bpy github页面中的选项是通过预构建轮安装,而不是通常的pip install bpy && bpy_post_install。你必须去一些‘粗略’的网站下载该文件,但在我下载和安装它的方式,我能够运行搅拌机脚本以外的搅拌机应用程序!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3