causalml
causalml copied to clipboard
Installing v0.14.0
Describe the bug
I am unable to install v0.14.0 due to errors with Cython:
Error compiling Cython file:
causalml/inference/tree/causal/_builder.pyx:61:56: Cannot assign type 'double' to 'int'
To Reproduce Steps to reproduce the behavior: pip install causalml==0.14.0
Environment (please complete the following information):
- OS: macOS
- Python Version: 3.8
- Versions of Major Dependencies:
cython==0.28
Is there a better way to install a previous version? Also is there a way to install with tensorflow a previous version?
It's rather a complex issue caused by a series of dependencies among causalml==0.14.0, scikit-learn, and Cython. The best way to address it is by installing causalml==0.14.1, where we removed the scikit-learn dependency (#686).
Is there any reason why you need to use the previous version?
Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.
In case if you really need the previous version to be installed for some reason, you can do the following:
- Clone the source code of v0.14.0:
git clone --depth 1 -b v0.14.0 [email protected]:uber/causalml.git - Set the upper bound for Cython package version in
pyproject.toml, see and build from source.
Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.
In case if you really need the previous version to be installed for some reason, you can do the following:
- Clone the source code of v0.14.0:
git clone --depth 1 -b v0.14.0 [email protected]:uber/causalml.git- Set the upper bound for Cython package version in
pyproject.toml, see and build from source.
Yes! We need the previous version due to an issue with v0.14.1 being incompatible with our current model.
Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.
In case if you really need the previous version to be installed for some reason, you can do the following:
- Clone the source code of v0.14.0:
git clone --depth 1 -b v0.14.0 [email protected]:uber/causalml.git- Set the upper bound for Cython package version in
pyproject.toml, see and build from source.
This is very helpful thank you! What if we want the option to install with TF because we are needing DragonNet
Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code. In case if you really need the previous version to be installed for some reason, you can do the following:
- Clone the source code of v0.14.0:
git clone --depth 1 -b v0.14.0 [email protected]:uber/causalml.git- Set the upper bound for Cython package version in
pyproject.toml, see and build from source.This is very helpful thank you! What if we want the option to install with TF because we are needing DragonNet
In this case run pip install .[tf] command in the source code directory.
Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.
In case if you really need the previous version to be installed for some reason, you can do the following:
- Clone the source code of v0.14.0:
git clone --depth 1 -b v0.14.0 [email protected]:uber/causalml.git- Set the upper bound for Cython package version in
pyproject.toml, see and build from source.
@alexander-pv I still seem to be running into the cython issue even when I clone the source code of v0.14.0, set the upper bounds, and build from source:
20.41 Error compiling Cython file:
20.41 ------------------------------------------------------------
20.41 ...
20.41
20.41 # Initial capacity
20.41 cdef int init_capacity
20.41
20.41 if tree.max_depth <= 10:
20.41 init_capacity = (2 ** (tree.max_depth + 1)) - 1
20.41 ^
20.41 ------------------------------------------------------------
20.41
20.41 causalml/inference/tree/causal/_builder.pyx:61:56: Cannot assign type 'double' to 'int'
@sstaszak, please, try to install from source using clear python environment. I've just tested package building with freshly created python3.9 env. Everything works as expected. It seems that some package reinstalls Cython at the final stage of causalml installation.
You can also use whl from this archive: causalml-0.14.0-cp39-cp39-linux_x86_64.zip
I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2
I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
I'm trying to install causalml using pip. but i received the status error 2; ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
I use !pip install causalml to install causalml. but i received the below error
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run
requirement_set = resolver.resolve(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
I'm trying to install causalml using pip. but i received the status error 2; ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
i applied all the ways in https://github.com/uber/causalml/blob/master/docs/installation.rst but none of the worked
Hi Alexander,
Could you help me with the problem I encountered installing causalml?
On Thu, Dec 21, 2023 at 11:21 AM Alexander Popkov @.***> wrote:
I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728 https://github.com/ImanEmtiazi728, could you please provide more details about the error.
— Reply to this email directly, view it on GitHub https://github.com/uber/causalml/issues/703#issuecomment-1865809580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXFMWKBVY7YMS24RLJLDWB3YKPS77AVCNFSM6AAAAAA7E26XNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVHAYDSNJYGA . You are receiving this because you were mentioned.Message ID: @.***>
I'm trying to install causalml using pip. but i received the status error 2; ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
I use !pip install causalml to install causalml. but i received the below error
ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname
The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: https://github.com/pypa/pip/issues/9972 I suggest creating new python environment and repeating package installation.
I'm trying to install causalml using pip. but i received the status error 2; ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
I use !pip install causalml to install causalml. but i received the below error ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname
The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: pypa/pip#9972 I suggest creating new python environment and repeating package installation.
I applied many commands, but none of them have worked up to now. the below commands;
pip3 install --no-cache-dir causalml pip install --no-cache-dir causalml
pip download --no-cache-dir --no-deps causalml pip install --no-cache-dir --no-deps --force-reinstall causalml-0.14.1.tar.gz
pip install --no-cache-dir --index-url=https://pypi.org/simple/ --trusted-host=pypi.org causalml
pip cache purge pip install --no-cache-dir causalml
I'm trying to install causalml using pip. but i received the status error 2; ERROR: Command errored out with exit status 2
Hi, @ImanEmtiazi728, could you please provide more details about the error.
I use !pip install causalml to install causalml. but i received the below error ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname
The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: pypa/pip#9972 I suggest creating new python environment and repeating package installation.
when I applied the below command: pip install causalml@git+https://github.com/uber/causalml#egg=causalml
I received the below error:
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/uber/causalml 'C:\Users\Iman\AppData\Local\Temp\pip-install-e6wu5yao\causalml_f361080b3a7c4c87b7c278ea2188376c' did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/uber/causalml 'C:\Users\Iman\AppData\Local\Temp\pip-install-e6wu5yao\causalml_f361080b3a7c4c87b7c278ea2188376c' did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I will close this issue for now as I believe this issue should have been fixed in the recent releases. Please feel free to open a new issue if you still experience it with the latest version.