说明
一开始使用如下命令进行安装
pip install transforms3d
结果出错如下:
Collecting transforms3d
Downloading https://files.pythonhosted.org/packages/05/bb/6d9bc2d2cc82c7984e0c6af586e561e8ca2e9e641483e617bbd256e5a8da/transforms3d-0.4.tar.gz (1.4MB)
100% |████████████████████████████████| 1.4MB 12kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-I29hXy/transforms3d/setup.py", line 8, in <module>
import versioneer
File "versioneer.py", line 370
LONG_VERSION_PY: Dict[str, str] = {}
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-I29hXy/transforms3d/
解决
使用pip3安装成功!
pip3 install transform3d
可能出现的问题
如若提示:
pip3 install transforms3d
Command 'pip3' not found, but can be installed with:
sudo apt install python3-pip
则,先执行如下命令
sudo apt install python3-pip