I'm getting an error while install tensorflowjs so I can convert keras models to tensorflowjs. In specific,
Collecting tensorflow==1.10.1 (from tensorflowjs)
Could not find a version that satisfies the requirement tensorflow==1.10.1 (from tensorflowjs) (from versions: 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.11.0rc0, 1.11.0rc1)
No matching distribution found for tensorflow==1.10.1 (from tensorflowjs)
Please help. Thanks.
It looks like tensorflow 1.10.1 is referenced from tfjs-converter, but the package should exist.
https://pypi.org/project/tensorflow/ indicates that 1.10.1 exists and is available
Can you try upgrading pip?
pip install --upgrade pip
My pip is upto date.
pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\rohitanaconda3\envs\tensorflow-js\lib\site-packages (18.0)
Does it work if you try to pip install tensorflow directly? What version
do you get? Are you using a virtual environment?
On Tue, Sep 18, 2018 at 10:01 PM, rohitvisionaries777 <
[email protected]> wrote:
My pip is upto date.
pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\rohitanaconda3\envs\
tensorflow-js\lib\site-packages (18.0)—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tfjs/issues/704#issuecomment-422621487,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhZTkpdsQm7MccxH0kvELWwvOBxAiqnks5ucaV3gaJpZM4WtEvX
.
--
Stan Bileschi Ph.D. | SWE | [email protected] | 617-230-8081
This probably has to do with the fact that Tensorflow 1.10.1 doesn't have any wheels for Windows.
Relevant notes from the 1.10.1 release:
tf.keras:You could try building 1.10.1 with Bazel, but it's likely easier to do the conversion in a Linux or macOS environment for now and then using the exported JSON in your Windows project.
FYI, as soon as the final release of tensorflow 1.11.0 comes out, we'll upgrade our dependency to that, which will resolve this problem. @pyu10055
Until when can the new release come out.....?
The TensorFlow team is trying to put 1.11.0 out asap.
Until that happens, you can manually install the latest version of tensorflow available for windows, in addition to other dependencies of tensorflowjs. Then you can install tensorflowjs using the '--no-deps' flag. E.g.,
pip install tensorflow==1.11.0rc2 h5py numpy keras
pip install --no-deps tensorflowjs
cool..that worked ..thanx for the help...I think this issue should be closed as of now
I had the same problem @rohitvisionaries777 got. Your @caisq solution worked for me as well. Thanks. :)
@caisq your solution also work perfectly for me... Thanks. :) .#lifeSaver
Hi, I'm currently using tensorflow 2.0 alpha release.
I got a similar error saying that the 2.0 package dependency could not be found so I used the
pip install --no-deps tensorflowjs
to install tensorflowjs without dependencies.
I already have numpy installed anyway.
Now I followed the instructions to run the converter and used the code:
tensorflowjs_converter \
--input_format=keras \
/tmp/my_keras_model.h5 \
/tmp/my_tfjs_model
now I'm getting this error
lib\site-packages\tensorflowjs\converters\tf_saved_model_conversion_v2.py", line 37, in <module>
import tensorflow_hub as hub
ModuleNotFoundError: No module named 'tensorflow_hub'
so the tensorflow_hub module is missing?
but I'm not converting a hub saved model.
i'm converting a keras model.
any advice will be much appreciated. Thanks.
UPDATE:
i just did
pip install tensorflow_hub
that fixed it.
ModuleNotFoundError: No module named 'tensorflow._api.v2'
我的好像缺少这个模块,但是网上也查不到相关信息,用pip也不能安装,说是找不到相应的版本
Hi all,
I'm facing an issue which I believe related to this discussion.
I have tensorflow 1.14.0 in my machine (Ubuntu 18.04)
When I run pip install tensorflowjs or pip3 install tensorflowjs (I tried both)
I'm getting the below error message:
Collecting tensorflow==1.15.0 (from tensorflowjs)
Could not find a version that satisfies the requirement tensorflow==1.15.0 (from tensorflowjs) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==1.15.0 (from tensorflowjs)
I'm kinda confused since my tensorflow verson is 1.14.0 as I mentioned.
Any idea about this?
PS: I'm new on tensorfow so I might did an easy mistake.
@eightmillimeter did you try this steps above with latest version ?
@rthadur I tried and it worked. I guess I skipped that post. Thanks for your help.
@caisq I know I'm like a year late but thanks your solution worked!
Most helpful comment
The TensorFlow team is trying to put 1.11.0 out asap.
Until that happens, you can manually install the latest version of tensorflow available for windows, in addition to other dependencies of tensorflowjs. Then you can install tensorflowjs using the '--no-deps' flag. E.g.,