mgruner/deepl-api-py

How to install it?

Closed this issue · 1 comments

I have tried pip install deepl-api and pip install deepl-api==0.2.1 but pip (both versions 20 and 21) drop this:

ERROR: Could not find a version that satisfies the requirement deepl-api==0.2.1
ERROR: No matching distribution found for deepl-api==0.2.1

Any guidelines? I know I can install it by downloading the .whl file but I think that's not the purpose of PyPI!

EDIT: I have just seen that this package requires at least python 3.7. We use 3.6. Maybe this is the issue, but not sure.

@manikos that might be the reason. It does work ok for me:

(.venv) ➜  venv pip install deepl-api
Collecting deepl-api
  Downloading deepl_api-0.2.1-py3-none-any.whl (7.4 kB)
Collecting requests<3.0.0,>=2.25.1
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting click<8.0.0,>=7.1.2
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.3-py2.py3-none-any.whl (137 kB)
     |████████████████████████████████| 137 kB 1.9 MB/s 
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting chardet<5,>=3.0.2
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Installing collected packages: urllib3, idna, chardet, certifi, requests, click, deepl-api
Successfully installed certifi-2020.12.5 chardet-4.0.0 click-7.1.2 deepl-api-0.2.1 idna-2.10 requests-2.25.1 urllib3-1.26.3
(.venv) ➜  venv ./.venv/bin/deepl 
Usage: deepl [OPTIONS] COMMAND [ARGS]...

Since the 3.7 requirement is present in the package, I assume that your python does not find the package online, which seems correct.