CMAKE在错误的文件夹中寻找python [英] CMAKE is looking for python on the wrong folder

查看:115
本文介绍了CMAKE在错误的文件夹中寻找python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Blender构建为python模块(make bpy),并且出现此错误

I'm trying to build blender as a python module ( make bpy ) and I´m getting this error

Configuring Blender in "/Volumes/2Tb/Projects/Blender/build_darwin_bpy" ...
loading initial cache file /Volumes/2Tb/Projects/Blender/blender/build_files/cmake/config/bpy_module.cmake
-- Detected OS X 10.15 and Xcode 11. at /Applications/Xcode.app
-- OSX_SYSROOT_PREFIX: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
CMake Error at build_files/cmake/platform/platform_apple.cmake:124 (message):
  Python executable missing:
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
Call Stack (most recent call first):
  CMakeLists.txt:817 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/queen/Projects/Blender/build_darwin_bpy/CMakeFiles/CMakeOutput.log".
make: *** [all] Error 1

似乎在寻找python在错误的目录中,因为我的软件是由Homebrew在/ user / local /

It seems it is looking for python in the wrong directory, as mine was installed by homebrew on /user/local/

如何更改路径?我试过: .bash_profile 上导出PYTHONPATH = / user / local / bin ,但是没有用。

How do I change the path? I tried:export PYTHONPATH=/user/local/bin on .bash_profile but didn´t work.

谢谢

推荐答案

我最终建立了符号链接

ln -s origin_path destination_path

Python.framework并有效

of Python.framework and it worked

这篇关于CMAKE在错误的文件夹中寻找python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆