causalml icon indicating copy to clipboard operation
causalml copied to clipboard

Add instructions for Windows install to docs

Open ras44 opened this issue 2 years ago • 0 comments

Steps to conda/pip install in windows:

  • install anaconda for windows

  • open anaconda powershell prompt (NOT the regular anaconda prompt nor a jupyter notebook shell prompt) and follow the instructions to create and activate a clean conda environment

  • Download and install the C++ Build tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/ image

  • Once the installation is complete, click on "Modify": image

  • Then click on and install the "Desktop development with C++" workload. This will install about 300 packages, currently 6.1 GB.

image

  • Once installation is complete, open up a Developer Command Prompt (windows button + type "developer command prompt") and execute the command 'cl'. This should produce no errors and produce output similar to:

image

  • now go back to your anaconda powershell prompt and run
git clone https://github.com/uber/causalml.git
cd causalml
pip install .
python setup.py build_ext --inplace
  • This should install the latest causalml code into your conda environment.

Troubleshooting

See additional helpful comments in https://github.com/uber/causalml/issues/665#issuecomment-1711185708 for installing with miniconda.

ras44 avatar Sep 06 '23 17:09 ras44