tammasloughran / ehfheatwaves

A script to calculate heatwaves from AWAP
29 stars 5 forks source link

Ehfheatwaves installation error #19

Closed GanarajDalal closed 1 year ago

GanarajDalal commented 1 year ago

While installing ehfheatwaves using command, pip install git clone https://github.com/tammasloughran/ehfheatwaves Following error is coming ERROR: Cannot unpack file C:\Users\ganar\AppData\Local\Temp\pip-unpack-i1w8q2wi\ehfheatwaves (downloaded from C:\Users\ganar\AppData\Local\Temp\pip-req-build-c7dk0vh6, content-type: text/html; charset=utf-8); cannot detect archive format ERROR: Cannot determine archive format of C:\Users\ganar\AppData\Local\Temp\pip-req-build-c7dk0vh6

tammasloughran commented 1 year ago

Hi @GanarajDalal ,

pip install git clone <url> is not a valid pip install command.

You can either download the repository, change your current working dorectory to the repository and install with pip from there:

git clone https://github.com/tammasloughran/ehfheatwaves
cd ehfheatwaves
pip install .

Or if you really want to install directly from the URL then you shouldn't have the git clone in the install command. Instead you prepend the URL with git+

pip install git+https://github.com/tammasloughran/ehfheatwaves

Cheers, Tam