treelite不能在带有pip的conda中插入

2024-04-20 13:55:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下.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

当我试图创造一个环境

^{pr2}$

,它将抛出一个错误:

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))

但是,我可以用

pip install treelite

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

编辑: 我创建了一个没有treelite的env,然后能够安装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

Tags: installpip文件thefromenvthatversion