coma icon indicating copy to clipboard operation
coma copied to clipboard

pip install -r requirements.txt, issue with tensorflow

Open lukkio88 opened this issue 5 years ago • 13 comments

Hi, when I try to run

pip install -r requirements.txt

I get the error:

No matching distribution found for tensorflow-gpu==1.3.0 (from -r requirements.txt (line 7))

However I've already installed tensorflow and tensorflow gpu, I can spot what the issue is. I've tried to hack your requirement file (essentially just removing the version) it still doesn't work.

Can you help?

lukkio88 avatar Apr 10 '19 12:04 lukkio88

If tensorflow is already installed, then you just remove the tensorflow-gpu==1.3.0 from the requirements.txt, install the other dependencies, and then try to run the code.

anuragranj avatar Apr 10 '19 13:04 anuragranj

In that case at some point I come across:

Failed building wheel for opendr

Some other stuff goes through, but I end up with:

Command "/home/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7le0ae6k/opendr/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-31er561u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7le0ae6k/opendr/

lukkio88 avatar Apr 10 '19 13:04 lukkio88

Could you try installing opendr from here and check? https://github.com/mattloper/opendr

anuragranj avatar Apr 10 '19 14:04 anuragranj

Let me try, I'll get back to you

lukkio88 avatar Apr 11 '19 09:04 lukkio88

There's no guide on how to install it. I've tried the pip install -r requirements.txt but I'm getting:

Obtaining file:///home/Projects/opendr (from -r requirements.txt (line 2))
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/Projects/opendr/setup.py", line 152, in <module>
        main()
      File "/home/Projects/opendr/setup.py", line 141, in main
        download_osmesa()
      File "/home/Projects/opendr/setup.py", line 43, in download_osmesa
        wget('http://files.is.tue.mpg.de/mloper/opendr/osmesa/%s' % (osmesa_fname,), dest_fname=zip_fname)
      File "/home/Projects/opendr/opendr/utils.py", line 37, in wget
        open(dest_fname, 'w').write(contents)
    TypeError: write() argument must be str, not bytes
    Downloading OSMesa.Linux.x86_64.zip
    http://files.is.tue.mpg.de/mloper/opendr/osmesa/OSMesa.Linux.x86_64.zip
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/Projects/opendr/

lukkio88 avatar Apr 11 '19 09:04 lukkio88

Are you using python2.7 or python3?

anuragranj avatar Apr 11 '19 10:04 anuragranj

python3

lukkio88 avatar Apr 11 '19 10:04 lukkio88

Oh, so opendr doesnt support python3, same for MPI-IS/mesh. I think it would be more convenient if you use python2.7. MPI-IS/mesh is expected to be python3 friendly in future, and we will update the code when dependencies start support python3 as well.

anuragranj avatar Apr 11 '19 23:04 anuragranj

There is an unofficial opendr (https://github.com/polmorenoc/opendr) port for Python 3 and I'm working on porting the mesh lib... It's definitely more work but sooner or later it has to be done.

Dawars avatar Apr 20 '19 13:04 Dawars

Thanks @Dawars . Could you send the pull request to mesh lib once the port is complete?

anuragranj avatar Apr 21 '19 14:04 anuragranj

@lukkio88 hello lukkio did you resolve the opendr issue?

eng100200 avatar Jul 04 '19 03:07 eng100200

My apologies for the late reply. No, I didn't manage. But I would be very happy if I could manage.

lukkio88 avatar Jul 15 '19 12:07 lukkio88

Hi, I use python2.7 for this project and I installed opendr, but I cannot install MPI/Mesh. I found the mesh package requires python3.5+ right now and maybe that is why I cannot compile it . How could I install mesh in python2.7? Looking forward for your reply.

redredbluee avatar Aug 16 '20 09:08 redredbluee