因果推断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