gpt4 book ai didi

bash - 如何解决 USDZConvert Pxr 导入错误?

转载 作者:行者123 更新时间:2023-12-04 16:34:03 26 4
gpt4 key购买 nike

从 Apple 网站安装 USDZ 工具后,我遇到了这个问题。我对 Python 有点生疏,并尝试安装所有底层软件包。

我设置了我的 PYTHONPATH已经在使用 export PYTHONPATH="/Users/gt/usdpython/USD/lib/python:$PYTHONPATH"

USD git:(master) ✗ usdzconvert
Traceback (most recent call last):
File "/Users/gt/usdpython/usdzconvert/usdzconvert", line 17, in <module>
usdUtils.printError("failed to import pxr module. Please add path to USD Python bindings to your PYTHONPATH.")
NameError: name 'usdUtils' is not defined

最佳答案

Download the previous version – usdpython 0.64 or usdpython 0.62 – from https://developer.apple.com.

You need to have these 3 lines inside .zshrc file – you can see how to create it HERE.

(This link also tells you about Apple's Reality Converter app)

export PYTHONPATH="/Users/gt/usdpython/USD/lib/python:$PYTHONPATH"
export PATH="/Users/gt/usdpython/USD:$PATH"
export PATH="/Users/gt/usdpython/usdzconvert:$PATH"
附言
不要使用 的版本usdpython_0.63 (2020 年 2 月 5 日),因为不幸的是它会导致错误。

关于bash - 如何解决 USDZConvert Pxr 导入错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60116329/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com