- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
从 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
orusdpython 0.62
– fromhttps://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/
从 Apple 网站安装 USDZ 工具后,我遇到了这个问题。我对 Python 有点生疏,并尝试安装所有底层软件包。 我设置了我的 PYTHONPATH已经在使用 export PYTHONPATH
我正在尝试使用命令行将我的 .obj 对象转换为 .usdz 并使用漫反射颜色丰富它,如 WWDC 19 Working with USD 中所述.但我得到 command not found: us
从 https://developer.apple.com/augmented-reality/tools/ 下载的 USDZ 工具 MAC -> MacOS BigSur Python -> 2.7
我是一名优秀的程序员,十分优秀!