因果推断causalml库安装各种问题

因果推断causalml库安装各种问题

1. python setup.py egg_info Check the logs for full command output.

解决:升级setup、升级pip(可选)

pip install --upgrade setuptools

–single-version-externally-managed --compile Check the logs for full command output.

解决:升级pip、升级或安装wheel

pip install --upgrade pip
pip install wheel

error: subprocess-exited-with-error python =setup.py bdist_wheel did not run successfully.

网上的解决方案是直接下载包后进行安装,尝试后成功

$ git clone https://github.com/uber/causalml.git
$ cd causalml
$ pip install -r requirements.txt
$ pip install causalml

To install causalml with tensorflow using pip, use causalml[tf] as follows:

$ git clone https://github.com/uber/causalml.git
$ cd causalml
$ pip install -r requirements-tf.txt
$ pip install causalml[tf]
$ pip install -U numpy # this stepis necessary to fix [#338](https://github.com/uber/causalml/issues/338)

在mac 新系统里持续git命名会出错,可能报xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)的错误
解决方案:命令行执行xcode-select --install

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值