不能使用pip将connat安装在treelite中

时间:2018-12-10 17:29:34

标签: python conda

我有以下.yml文件:

name: data_science_env_prob3
channels:
  - defaults
dependencies:
  - openssl=1.1.1
  - pandas=0.23.4=py37h6440ff4_0
  - scikit-learn=0.19.2=py37h4f467ca_0
  - pip:
    - treelite==0.32
    - urllib3==1.24.1
    - xgboost==0.71

当我尝试创建环境时

conda env create -f data_science_env.yml

,它会引发错误:

Could not find a version that satisfies the requirement treelite==0.32 (from -r /path/condaenv.ijla7f1z.requirements.txt (line 17)) (from versions: )
No matching distribution found for treelite==0.32 (from -r /path/condaenv.ijla7f1z.requirements.txt (line 17))

但是,我可以使用

安装treelite(不在conda env中)
pip install treelite

如何使用conda .yml文件安装treelite?

编辑: 我创建了一个没有treelite的环境,然后可以通过以下方式安装treelite:

pip3 install --user treelite

但是跟随它失败:

 pip install --user treelite
Collecting treelite
  Could not find a version that satisfies the requirement treelite (from versions: )
No matching distribution found for treelite

1 个答案:

答案 0 :(得分:0)

Treelite当前不适用于Python 3.7的pip。

您要么需要从源代码安装,要么切换到Python 3.7环境。