Skip to content

dependencies

Cool stuf! Love the walkthrough.

I've installed it on Kubuntu 20.04LTS and didn't want to use an old python3.6 version so I skiped that.

Installing the requirements, I ended up with an incompatibility

ERROR: Could not find a version that satisfies the requirement tensorflow_gpu==1.15.3 (from -r requirements.txt (line 5)) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0)              
ERROR: No matching distribution found for tensorflow_gpu==1.15.3 (from -r requirements.txt (line 5))

so I changed tensorflow_gpu==1.15.3 to tensorflow_gpu==2.2.0

Collecting skimage==0.0
  Downloading skimage-0.0.tar.gz (757 bytes)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qve6srcs/skimage/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qve6srcs/skimage/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-qve6srcs/skimage/pip-egg-info                                                      
         cwd: /tmp/pip-install-qve6srcs/skimage/                                                                                                                
    Complete output (3 lines):                                                                                                                                  
                                                                                                                                                                
    *** Please install the `scikit-image` package (instead of `skimage`) ***                                                                                    
                                                                                                                                                                
    ----------------------------------------                                                                                                                    
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

So I replaced skimage by scikit-image==0.17.2

After this mod, although with error's, the installation seem to have completed

Successfully built pyfakewebcam imutils termcolor
ERROR: tensorflow-gpu 2.2.0 has requirement scipy==1.4.1; python_version >= "3", but you'll have scipy 1.3.3 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement grpcio~=1.32.0, but you'll have grpcio 1.34.0 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement numpy~=1.19.2, but you'll have numpy 1.18.3 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement six~=1.15.0, but you'll have six 1.14.0 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement tensorboard~=2.4, but you'll have tensorboard 2.2.2 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement tensorflow-estimator<2.5.0,>=2.4.0rc0, but you'll have tensorflow-estimator 2.2.0 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement wheel~=0.35, but you'll have wheel 0.34.2 which is incompatible.
ERROR: tensorflow 2.4.0 has requirement wrapt~=1.12.1, but you'll have wrapt 1.11.2 which is incompatible.
Installing collected packages: kiwisolver, numpy, pyparsing, python-dateutil, cycler, matplotlib, PyWavelets, networkx, imageio, tifffile, scikit-image, pyfakewebcam, opencv-python, imutils, termcolor, google-pasta, h5py, werkzeug, requests-oauthlib, cachetools, rsa, google-auth, google-auth-oauthlib, tensorboard-plugin-wit, markdown, grpcio, protobuf, absl-py, tensorboard, tensorflow-estimator, keras-preprocessing, opt-einsum, gast, astunparse, tensorflow-gpu, flatbuffers, tensorflow
  Attempting uninstall: numpy
    Found existing installation: numpy 1.17.4
    Not uninstalling numpy at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'numpy'. No files were found to uninstall.
Successfully installed PyWavelets-1.1.1 absl-py-0.11.0 astunparse-1.6.3 cachetools-4.2.0 cycler-0.10.0 flatbuffers-1.12 gast-0.3.3 google-auth-1.24.0 google-auth-oauthlib-0.4.2 google-pasta-0.2.0 grpcio-1.34.0 h5py-2.10.0 imageio-2.9.0 imutils-0.5.3 keras-preprocessing-1.1.2 kiwisolver-1.3.1 markdown-3.3.3 matplotlib-3.3.3 networkx-2.5 numpy-1.18.3 opencv-python-4.2.0.32 opt-einsum-3.3.0 protobuf-3.14.0 pyfakewebcam-0.1.0 pyparsing-2.4.7 python-dateutil-2.8.1 requests-oauthlib-1.3.0 rsa-4.7 scikit-image-0.17.2 tensorboard-2.2.2 tensorboard-plugin-wit-1.7.0 tensorflow-2.4.0 tensorflow-estimator-2.2.0 tensorflow-gpu-2.2.0 termcolor-1.1.0 tifffile-2021.1.11 werkzeug-1.0.1

The rest of the described manual worked as promised. Nevertheless, it's really grinding the cpu (8 × Intel® Core™ i7-4710MQ CPU @ 2.50GHz)