conda环境下pip install eos-py成功但是import出错 ImportError: arg(): could not convert default argument into a

调试程序来源
https://github.com/NVlabs/few_shot_gaze/blob/master/demo/README.md
eos-py库相关问题讨论:https://github.com/patrikhuber/eos/issues/256

解决:
安装gcc7

第一步
sudo apt install g++-7 -y
第二步把系统gcc切换到7的版本
参考:https://blog.youkuaiyun.com/sd10086/article/details/52983898
在终端输入指令:sudo update-alternatives --config gcc
输出如下,然后手动输入2的选择对应的版本
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path            Priority   Status
------------------------------------------------------------
  0            /usr/bin/gcc-7   100       auto mode
  1            /usr/bin/gcc-6   10        manual mode
* 2            /usr/bin/gcc-7   100       manual mode
Press <enter> to keep the current choice[*], or type selection number:
第三步:安装conda环境内eos-py 最好使用绝对路径的pip3,
CC=`which gcc-7` CXX=`which g++-7` /home/omnisky/anaconda3/envs/pytorch/bin/pip3 install eos-py
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值