调试程序来源
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