知乎上看见的这个项目,github链接,下载之后准备安装,但是服务器老是报错,所以写了这篇文章记录一下安装过程。
- 正常安装方法(readme文件):
- 使用pip安装(清华源有时候不行,可以试试北外的源,我的另一篇博客里有讲方法)
pip install tianshou
- 使用conda安装
conda -c conda-forge install tianshou
- 使用git安装
pip install git+https://github.com/thu-ml/tianshou.git@master --upgrade
- 但是我使用三种方法都不可以,服务器上pip安装总是出错,第二种方法安装总是报错“No command 'conda conda-forge”,后来发现应该把conda-forge放在后面
conda install tianshou -c conda-forge
,这样就成功安装啦! - 可以使用以下语句判断是否安装成功