vectorbt
vectorbt copied to clipboard
Poetry - Vectorbt
I am having difficult to install vectorbt using poetry:
poetry add vectorbt
Using version ^0.21.0 for vectorbt
Updating dependencies
Resolving dependencies... (1.2s)
Package operations: 20 installs, 1 update, 0 removals
• Updating numpy (1.21.1 -> 1.21.2)
• Installing cycler (0.10.0)
• Installing joblib (1.0.1)
• Installing kiwisolver (1.3.2)
• Installing llvmlite (0.36.0)
• Installing pillow (8.3.2)
• Installing regex (2021.8.28)
• Installing scipy (1.7.1)
• Installing threadpoolctl (2.2.0)
• Installing tzlocal (3.0)
• Installing dateparser (1.0.0)
• Installing dill (0.3.4)
• Installing imageio (2.9.0)
• Installing kaleido (0.2.1.post1): Failed
RuntimeError
Unable to find installation candidates for kaleido (0.2.1.post1)
at ~/.poetry/lib/poetry/installation/chooser.py:73 in choose_for
69│ links.append(link)
70│
71│ if not links:
72│ raise RuntimeError(
→ 73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
• Installing matplotlib (3.4.3)
• Installing mypy-extensions (0.4.3)
• Installing numba (0.53.1)
• Installing schedule (1.1.0)
• Installing scikit-learn (0.24.2)
• Installing tqdm (4.62.2)
Failed to add packages, reverting the pyproject.toml file to its original content.
'''
Kaleido cannot be installed through poetry? I will make it an optional dependency in the next release.
I had the same issue - with pipenv and poetry. Somehow the post1 version makes trouble/cannot be found. In the end I just forced poetry to use/install the version without post1
[tool.poetry.dependencies]
kaleido = "0.2.1"
Also kaleido can not be installed on Alpine linux, I am unable to upgrade vectorbt past v0.18, looking forward to this change!
As a temporary solution, you can install the develop branch, which doesn’t have kaleido in the requirements.
Thanks @polakowo that got me moving ahead