Closed Spider101 closed 7 years ago
If you install recurrentshop (first) separately, it works.
Do pip install git+https://github.com/datalogai/recurrentshop.git Use sudo if you are using linux distribution.
Thank you. I will do so. I just feel it would have been more efficient if the dependencies were also installed through the pip installation of the seq2seq library.
on mac & python3.6
pip3 install git+https://github.com/datalogai/recurrentshop.git pip3 install git+https://github.com/farizrahman4u/seq2seq.git
on mac & python3.6
pip3 install git+https://github.com/datalogai/recurrentshop.git pip3 install git+https://github.com/farizrahman4u/seq2seq.git
There is a issue in recurrentshop/engine.py
:
>>> import recurrentshop
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vikas/anaconda3/lib/python3.7/site-packages/recurrentshop/__init__.py", line 1, in <module>
from .engine import *
File "/home/vikas/anaconda3/lib/python3.7/site-packages/recurrentshop/engine.py", line 10, in <module>
if K.backend() == 'tensorflow':
NameError: name 'K' is not defined
Fix:
Add this line from keras import backend as K
to engine.py
to fix this then proceed to install seq2seq
as mentioned above.
on mac & python3.6 pip3 install git+https://github.com/datalogai/recurrentshop.git pip3 install git+https://github.com/farizrahman4u/seq2seq.git
There is a issue in
recurrentshop/engine.py
:>>> import recurrentshop Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/vikas/anaconda3/lib/python3.7/site-packages/recurrentshop/__init__.py", line 1, in <module> from .engine import * File "/home/vikas/anaconda3/lib/python3.7/site-packages/recurrentshop/engine.py", line 10, in <module> if K.backend() == 'tensorflow': NameError: name 'K' is not defined
Fix: Add this line
from keras import backend as K
toengine.py
to fix this then proceed to installseq2seq
as mentioned above.
Cool,this works well
The installation instructions in the Readme (install with pip) did not work for me.
sudo pip install git+ssh://github.com/farizrahman4u/seq2seq.git
Running the above line gave me the following error:
Could not find a version that satisfies the requirement recurrentshop (from seq2seq==0.1.0) (from versions: ) No matching distribution found for recurrentshop (from seq2seq==0.1.0)
Do I have to install recurrentshop separately?