ROS系列——Python项目下的transform3d库安装问题解决File “versioneer.py“, line 370 LONG_VERSION_PY: Dict[str, str]

Python项目下的transform3d库安装问题解决

说明

一开始使用如下命令进行安装

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
  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值