# Pip install hail error - import datetime

**URL:** <https://discuss.hail.is/t/pip-install-hail-error-import-datetime/4133>\
**Category:** Hail Query & hailctl\
**Created:** [May 20, 2025, 1:09pm UTC](https://discuss.hail.is/t/pip-install-hail-error-import-datetime/4133 "2025-05-20T13:09:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![complexgenome](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/complexgenome/32/1292_2.png) [@complexgenome](https://discuss.hail.is/u/complexgenome)\
**Post date:** [May 20, 2025, 1:09pm UTC](https://discuss.hail.is/t/pip-install-hail-error-import-datetime/4133/1 "2025-05-20T13:09:36Z")

</div>

Hi there,

I created a conda env to work with gnomad libraries.  
I then installed pip in the conda env.  
When I try to install hail I get a long trace back error. It originates as

```
  ImportError: PyCapsule_Import could not import module "datetime"

```

I am using  
cmake/4.0.0  
openBLAS/0.3.28

for installation

Can you help? Attached error log.  
[hail\_error.txt](https://discuss.hail.is/uploads/short-url/ajcwWYxYHV68LU6eqJzqskodA96.txt) (66.8 KB)

---

<div class="post-metadata">

**Author:** ![chrisvittal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/chrisvittal/32/327_2.png) [@chrisvittal](https://discuss.hail.is/u/chrisvittal)\
**Post date:** [May 20, 2025, 3:04pm UTC](https://discuss.hail.is/t/pip-install-hail-error-import-datetime/4133/2 "2025-05-20T15:04:16Z")

</div>

It seems that the version of python you are using doesn’t have a prebuilt package for the version of numpy that we require. I would recommend trying python 3.12 or 3.11.
