asyml / texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
745 stars 117 forks source link

Can install texar-pytorch and texar-tensorflow #212

Closed XinDongol closed 5 years ago

XinDongol commented 5 years ago

It seems that there is some conflict if we install texar-pytorch and texar-tensorflow in the same env. I got the same error as #130

XinDongol commented 5 years ago

If I install texar-tf first, I can not import texar.torch after installing texar-pytorch.

However, after uninstalling texar-tf, everything is fine.

huzecong commented 5 years ago

Sorry, this is probably due to our installation instructions being out-of-date. Could you try installing both libraries using pip install . (without -e)?

XinDongol commented 5 years ago

works now. Thanks a lot.

ha-lins commented 5 years ago

I advise that the texar-tf and pytorch version should both support pip install . -e. Do you konw how to do that? Thanks! @huzecong

huzecong commented 5 years ago

@ha-lins Both versions work with pip install . -e when installed individually, but it will not be possible to install both packages at the same time with -e. This is because the folders texar/tf/ and texar/torch/ must have a shared parent folder texar/, and it is not possible to do so with -e.