uber / causalml

Uplift modeling and causal inference with machine learning algorithms
Other
4.87k stars 756 forks source link

`python setup.py build_ext --inplace` errors on windows #699

Closed rolandrmgservices closed 7 months ago

rolandrmgservices commented 8 months ago

Describe the bug Calling python setup.py build_ext --inplace errors on windows.

To Reproduce Follow windows installation steps and then run the above command. It produces an infinite/recursive loop repeating the same error.

This was installed in a conda environment running within anaconda powershell prompt, where previously the install succeeded.

Expected behavior Success

Screenshots image

Environment (please complete the following information):

Additional context None

barrybinshen commented 8 months ago

Try changing "nthreads=0" in the setup function in the setup.py file. The reason for the error should be: the Linux system uses multiprocessing to load data, but it seems that this is not possible on Windows. So you can set "nthreads" to 0 to avoid enabling multiprocessing.