ubuntu22安装tenserflow0.12.1
强化学习环境需要
conda create -n irl-imitation python=2.7 cvxopt Tensorflow=0.12.1 matplotlib
安装cvxopt失败
因此先conda create -n irl-imitation python=2.7
建立新环境。
然后pip install tensorflow==0.12.1
报错:
protobuf requires Python '>=3.7' but the running Python is 2.7.18
参考
解决:protobuf requires Python ‘>=3.7‘ but the running Python is 3.5.5_libpcap require python but the running python-CSDN博客
执行了:python -m pip install --upgrade pip
再执行 pip install tensorflow==0.12.1
成功
个人推测 更高版本的pip可以更好的解决这些包的依赖关系