zalandoresearch / pytorch-ts

PyTorch based Probabilistic Time Series forecasting framework based on GluonTS backend
MIT License
1.21k stars 190 forks source link

Installation issue #38

Closed harshilkamdar closed 3 years ago

harshilkamdar commented 3 years ago

Hi, with the latest update of making gluonts a requirement, I think there seems to be an issue with the installation via pip.

The error I get:

ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI. pytorchts depends on gluonts@ git+https://github.com/awslabs/gluon-ts.git@master#egg=gluonts

kashif commented 3 years ago

ah damn! Yes that will not works... hmmm ok for now kindly first manually install:

pip install git+https://github.com/awslabs/gluon-ts.git@master#egg=gluonts

and then:

pip install pytorchts

till I can figure out how to fix this.

harshilkamdar commented 3 years ago

Huh, not sure if this is an issue on pytorch-ts's end, but when I try to install gluonts with the method above, I get the error:

ContextualVersionConflict: (pydantic 1.7.3 (/opt/conda/lib/python3.7/site-packages), Requirement.parse('pydantic<1.7,~=1.1'), {'gluonts'})

It seems to be installing the right version of pydantic but some conda issues? not sure.

kashif commented 3 years ago

I see and if you remove your pydantic first via:

pip uninstall pydantic

and then try to install gluonts via the command above does it work?

harshilkamdar commented 3 years ago

No, didn't work. I'm on a cloud-hosted notebook, so that might be the issue. Thank you for the great package!

kashif commented 3 years ago

I see, and how about if you install the 1.6.1 version via: pip install pydantic==1.6.1 and then glutonts?

fernandocamargoai commented 3 years ago

I don't this project specify the gluonts version using pip instead of the master branch? Like: gluonts>=0.6.7

kashif commented 3 years ago

@fernandocamargoti some of my fixes to gluonts are still in master so as soon as a new version comes I will update it here.

fernandocamargoai commented 3 years ago

Oh, understood. Thanks for the update.

By the way, I installed it with:

pip install --no-deps pytorchts==0.3.1