pip install tensorflowjs error 1.0.1
See original GitHub issueTensorFlow.js version: 1.0.1
Windows 7 Anaconda Navigator Environment
Describe the problem or feature request
Iβve had problems installing tensorflowjs in the past, but I was hoping that the release of 1.0.1 would remedy the issues. However, I seem to be getting another issue when i do the terminal command
pip install tensorflowjs
If not the package, Iβm guessing it may have to do with my use of the Anaconda Navigator Environment, but I donβt have a great understanding of pip and python envs yet.
Code to reproduce the bug / link to feature request
(tensorflowjs2) C:\Users\USER>pip install tensorflowjs
Collecting tensorflowjs
Using cached https://files.pythonhosted.org/packages/79/29/35e1aa467436ff46b98
df65a08c49faaedb3429e1c512d1d90fe308040a0/tensorflowjs-1.0.1-py3-none-any.whl
Requirement already satisfied: h5py==2.8.0 in c:\users\luqman\anaconda2\envs\ten
sorflowjs2\lib\site-packages (from tensorflowjs) (2.8.0)
Collecting keras==2.2.4 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502
266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting tensorflow-hub==0.3.0 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/9e/f0/3a3ced04c8359e562f1
b91918d9bde797c8a916fcfeddc8dc5d673d1be20/tensorflow_hub-0.3.0-py2.py3-none-any.
whl
Requirement already satisfied: numpy==1.15.1 in c:\users\luqman\anaconda2\envs\t
ensorflowjs2\lib\site-packages (from tensorflowjs) (1.15.1)
Requirement already satisfied: six==1.11.0 in c:\users\luqman\anaconda2\envs\ten
sorflowjs2\lib\site-packages (from tensorflowjs) (1.11.0)
Collecting tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
Could not find a version that satisfies the requirement tf-nightly-2.0-preview
>=2.0.0.dev20190304 (from tensorflowjs) (from versions: )
No matching distribution found for tf-nightly-2.0-preview>=2.0.0.dev20190304 (fr
om tensorflowjs)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Error when pip install tensorflowjs β Could not install ...
Hit the Windows key, type gpedit.msc and press Enter. Β· Navigate to Local Computer Policy > Computer Configuration > Administrative Templates >Β ...
Read more >tensorflowjs - PyPI
The tensorflowjs pip package contains libraries and tools for [TensorFlow.js](https://js.tensorflow.org). Use following command to install the library withΒ ...
Read more >Setup | TensorFlow.js
There are two main ways to get TensorFlow.js in your browser based projects: Using script tags. Installation from NPM and using a build...
Read more >facing issues with tensorflow js converter - Google Groups
Here is the code (github link) in python for a simple XOR with simple_save. ... it fails with the error. ... Tensorflowjs version:...
Read more >MT3 - a Hugging Face Space by oniati
Defaulting to user installation because normal site-packages is not ... allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: forΒ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@caisq Many thanks I have followed below processes and make it work now. for WINDOW10
install new python3.6.8 (python3.7 is not supported)
pip install virtualenv
create virtualenv and activate (Python 3.6.8) virtualenv --python=C:\Users\wo.kritdikoon\AppData\Local\Programs\Python\Python36\python.exe venv36 cd venv36/Scripts activate
install tensorflowjs pip install tensorflowjs
open python and import tensorflowjs (error)
upgrade numpy pip install numpy --upgrade
open python and import tensorflowjs (no error) (venv36) C:\Windows\System32\venv36\Scripts>python
Below is full detail
C:\Windows\System32>virtualenv --python=C:\Users\wo.kritdikoon\AppData\Local\Programs\Python\Python36\python.exe venv36 Running virtualenv with interpreter C:\Users\wo.kritdikoon\AppData\Local\Programs\Python\Python36\python.exe Using base prefix βC:\Users\wo.kritdikoon\AppData\Local\Programs\Python\Python36β New python executable in C:\Windows\System32\venv36\Scripts\python.exe Installing setuptools, pip, wheelβ¦ done.
C:\Windows\System32>cd venv36/Scripts
C:\Windows\System32\venv36\Scripts>activate
(venv36) C:\Windows\System32\venv36\Scripts>python --version Python 3.6.8
(venv36) C:\Windows\System32\venv36\Scripts>pip install tensorflowjs Collecting tensorflowjs Using cached https://files.pythonhosted.org/packages/79/29/35e1aa467436ff46b98df65a08c49faaedb3429e1c512d1d90fe308040a0/tensorflowjs-1.0.1-py3-none-any.whl Collecting six==1.11.0 (from tensorflowjs) Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Collecting tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs) Downloading https://files.pythonhosted.org/packages/75/03/d1bfb861055774ddf37e73b1278640a91cbe2a9c4f19262890a0a2655406/tf_nightly_2.0_preview-2.0.0.dev20190516-cp36-cp36m-win_amd64.whl (48.7MB) |ββββββββββββββββββββββββββββββββ| 48.7MB 6.4MB/s Collecting h5py==2.8.0 (from tensorflowjs) Using cached https://files.pythonhosted.org/packages/12/6c/00c38c5ce9322f1cc421d93217c44739646a106c61859622eccc297a5c05/h5py-2.8.0-cp36-cp36m-win_amd64.whl Collecting keras==2.2.4 (from tensorflowjs) Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl Collecting tensorflow-hub==0.3.0 (from tensorflowjs) Using cached https://files.pythonhosted.org/packages/9e/f0/3a3ced04c8359e562f1b91918d9bde797c8a916fcfeddc8dc5d673d1be20/tensorflow_hub-0.3.0-py2.py3-none-any.whl Collecting numpy==1.15.1 (from tensorflowjs) Using cached https://files.pythonhosted.org/packages/fb/7d/f8b97d97809f184d90faf320fa8e2e7eac994844c5e6c57adbed1283e9e9/numpy-1.15.1-cp36-none-win_amd64.whl Collecting absl-py>=0.7.0 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Collecting keras-preprocessing>=1.0.5 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/c0/bf/0315ef6a9fd3fc2346e85b0ff1f5f83ca17073f2c31ac719ab2e4da0d4a3/Keras_Preprocessing-1.0.9-py2.py3-none-any.whl Collecting wrapt>=1.11.1 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Downloading https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz Collecting keras-applications>=1.0.6 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/90/85/64c82949765cfb246bbdaf5aca2d55f400f792655927a017710a78445def/Keras_Applications-1.0.7-py2.py3-none-any.whl Collecting google-pasta>=0.1.6 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/f9/68/a14620bfb042691f532dcde8576ff82ee82e4c003cdc0a3dbee5f289cee6/google_pasta-0.1.6-py3-none-any.whl Collecting termcolor>=1.1.0 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Collecting tb-nightly<1.15.0a0,>=1.14.0a0 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Downloading https://files.pythonhosted.org/packages/33/79/14092647d35fd057bd33c338f59da920b1f9071c384530f03632b12950e8/tb_nightly-1.14.0a20190516-py3-none-any.whl (3.1MB) |ββββββββββββββββββββββββββββββββ| 3.1MB 6.4MB/s Collecting gast>=0.2.0 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Collecting grpcio>=1.8.6 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/c7/c0/e1f8180d75969ac4b7c026514740f10f5edfd912ef2d6aaa845790ce4095/grpcio-1.20.1-cp36-cp36m-win_amd64.whl Collecting protobuf>=3.6.1 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/c9/58/4cd04c098d19d2327d1e1c94835c82fbf5a7f7c84d7095b70c33f9582acb/protobuf-3.7.1-cp36-cp36m-win_amd64.whl Collecting tensorflow-estimator-2.0-preview (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Downloading https://files.pythonhosted.org/packages/a4/7e/63951a9d7251be80ca3c79a134ad082705996734285568532393c6571a2b/tensorflow_estimator_2.0_preview-1.14.0.dev2019051600-py2.py3-none-any.whl (427kB) |ββββββββββββββββββββββββββββββββ| 430kB 6.8MB/s Collecting astor>=0.6.0 (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl Requirement already satisfied: wheel>=0.26 in c:\windows\system32\venv36\lib\site-packages (from tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) (0.33.4) Collecting scipy>=0.14 (from keras==2.2.4->tensorflowjs) Downloading https://files.pythonhosted.org/packages/b9/a2/62f77d2d3c42364d45ba714b4bdf7e1c4dfa67091dc9f614fa5a948b4fb4/scipy-1.2.1-cp36-cp36m-win_amd64.whl (30.2MB) |ββββββββββββββββββββββββββββββββ| 30.2MB 6.8MB/s Collecting pyyaml (from keras==2.2.4->tensorflowjs) Downloading https://files.pythonhosted.org/packages/72/da/386634cb17f33b12278af017ccb3314cede4806af70285f396b8f6af1203/PyYAML-5.1-cp36-cp36m-win_amd64.whl (214kB) |ββββββββββββββββββββββββββββββββ| 215kB 6.4MB/s Collecting werkzeug>=0.11.15 (from tb-nightly<1.15.0a0,>=1.14.0a0->tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Downloading https://files.pythonhosted.org/packages/9f/57/92a497e38161ce40606c27a86759c6b92dd34fcdb33f64171ec559257c02/Werkzeug-0.15.4-py2.py3-none-any.whl (327kB) |ββββββββββββββββββββββββββββββββ| 327kB β¦ Collecting markdown>=2.6.8 (from tb-nightly<1.15.0a0,>=1.14.0a0->tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) Using cached https://files.pythonhosted.org/packages/f5/e4/d8c18f2555add57ff21bf25af36d827145896a07607486cc79a2aea641af/Markdown-3.1-py2.py3-none-any.whl Requirement already satisfied: setuptools in c:\windows\system32\venv36\lib\site-packages (from protobuf>=3.6.1->tf-nightly-2.0-preview>=2.0.0.dev20190304->tensorflowjs) (41.0.1) Building wheels for collected packages: wrapt Building wheel for wrapt (setup.py) β¦ done Stored in directory: C:\Users\wo.kritdikoon\AppData\Local\pip\Cache\wheels\89\67\41\63cbf0f6ac0a6156588b9587be4db5565f8c6d8ccef98202fc Successfully built wrapt Installing collected packages: six, absl-py, numpy, keras-preprocessing, wrapt, h5py, keras-applications, google-pasta, termcolor, werkzeug, markdown, grpcio, protobuf, tb-nightly, gast, tensorflow-estimator-2.0-preview, astor, tf-nightly-2.0-preview, scipy, pyyaml, keras, tensorflow-hub, tensorflowjs Successfully installed absl-py-0.7.1 astor-0.7.1 gast-0.2.2 google-pasta-0.1.6 grpcio-1.20.1 h5py-2.8.0 keras-2.2.4 keras-applications-1.0.7 keras-preprocessing-1.0.9 markdown-3.1 numpy-1.15.1 protobuf-3.7.1 pyyaml-5.1 scipy-1.2.1 six-1.11.0 tb-nightly-1.14.0a20190516 tensorflow-estimator-2.0-preview-1.14.0.dev2019051600 tensorflow-hub-0.3.0 tensorflowjs-1.0.1 termcolor-1.1.0 tf-nightly-2.0-preview-2.0.0.dev20190516 werkzeug-0.15.4 wrapt-1.11.1
(venv36) C:\Windows\System32\venv36\Scripts>python Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32 Type βhelpβ, βcopyrightβ, βcreditsβ or βlicenseβ for more information.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File β<frozen importlib._bootstrap>β, line 968, in _find_and_load SystemError: <class β_frozen_importlib._ModuleLockManagerβ> returned a result with an error set ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import 2019-05-17 15:05:06.816070: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
(venv36) C:\Windows\System32\venv36\Scripts>
(venv36) C:\Windows\System32\venv36\Scripts>pip install numpy --upgrade Collecting numpy Downloading https://files.pythonhosted.org/packages/2e/11/f006363050b24fb19a235e5efd219e7ac549398d531110d80b8f2ba3a909/numpy-1.16.3-cp36-cp36m-win_amd64.whl (11.9MB) |ββββββββββββββββββββββββββββββββ| 11.9MB 6.4MB/s ERROR: tensorflowjs 1.0.1 has requirement numpy==1.15.1, but youβll have numpy 1.16.3 which is incompatible. Installing collected packages: numpy Found existing installation: numpy 1.15.1 Uninstalling numpy-1.15.1: Successfully uninstalled numpy-1.15.1 Successfully installed numpy-1.16.3
(venv36) C:\Windows\System32\venv36\Scripts>python Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32 Type βhelpβ, βcopyrightβ, βcreditsβ or βlicenseβ for more information.
@PrakharPriyesh Thanks for the update. Iβll close the issue now. Feel free to comment or reopen if you have remaining issues.