Trouble installing Tensorflowjs in conda environment

2,389 views
Skip to first unread message

vivek verma

unread,
Sep 24, 2018, 5:11:37 PM9/24/18
to TensorFlow.js Discussion
Hi everyone, 

I am new to tensorflowjs and want to install tensorflowjs in my conda virtual environment. But I get an error saying "No matching distribution found for tensorflow==1.10.1 (from tensorflowjs)."  I use Windows OS and my conda as well as tensorflow are up-to-date. I am using 'pip install tensorflowjs' for installation inside my virtual environment.

Any help will be much appreciated.

Thanks,
Vivek 

Shanqing Cai

unread,
Sep 24, 2018, 5:19:04 PM9/24/18
to vivek...@gmail.com, TensorFlow.js Discussion

The 1.10.1 release of TensorFlow python skipped Windows. Can you try the following
1) Manually install the latest version of tensorflow, in addition to the other dependencies: pip install tensorflow==1.11.0rc2 h5py numpy keras
2) Then install tensorflowjs: pip install --no-deps tensorflowjs

This issue should resolve soon when we upgrade the tensorflow dependency to 1.11.0.

--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
Visit this group at https://groups.google.com/a/tensorflow.org/group/tfjs/.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/5583ec16-7bdf-42c2-8618-0cfdbd086d4a%40tensorflow.org.


--
---
Shanqing Cai
Software Engineer
Google

vivek verma

unread,
Sep 25, 2018, 10:23:33 AM9/25/18
to ca...@google.com, tf...@tensorflow.org
Hi Shanqing,

Thank you for your response and providing help. Your suggestions worked for installing tensorflowjs. I manually installed tensorflow==1.11.0cr2 and then installed tensorflowjs. 
However another problem came up after installing the above frameworks. This time Keras fails to load when I try to import it in jupyter notebook. I read similar issues in github but not able to resolve it. I am attaching the error for reference. During installation of Keras 2.2.2 in command prompt I got some warnings about incompatibility as well. I took a snapshot of those warnings. 

Please let me know if you have any suggestions. 

Thank you,
Vivek 
--
Regards,
Vivek Verma, MS
Keras error.txt
Capture.PNG

Shanqing Cai

unread,
Sep 25, 2018, 10:28:57 AM9/25/18
to vivek verma, TensorFlow.js Discussion
Does the same error occur if you do it outside the Jupyter notebook, e.g., from a plain text terminal?

vivek verma

unread,
Sep 25, 2018, 10:42:40 AM9/25/18
to ca...@google.com, tf...@tensorflow.org
Hi Shanqing, 

I get similar error in Python plain text terminal. I see someone posted exactly the same error in github. I am looking into its solution.
I will update you.

Vivek

Python error.PNG

Shanqing Cai

unread,
Sep 25, 2018, 11:00:49 AM9/25/18
to vivek verma, TensorFlow.js Discussion
This seems to be a TensorFlow problem (i.e., not a TensorFlow.js problem per se). Can you take a look at this TF GitHub issue and see whether there is any useful info for you there?
https://github.com/tensorflow/tensorflow/issues/11571
Reply all
Reply to author
Forward
0 new messages