Coder Social home page Coder Social logo

Comments (5)

michaelschaarschmidt avatar michaelschaarschmidt commented on July 21, 2024 1

Good point, we will get to this, thanks!

from tensorforce.

pedronahum avatar pedronahum commented on July 21, 2024 1

Hi @krfricke

The current setup.py will fail to recognize if tensorflow-gpu is already installed. In fact, it would download and install the cpu version.

If I make the changes as shown below, would allow the following installation options:

--Assumes tensorflow or tensorflow-gpu installed
pip install tensorforce -e .

--Installs with tensorflow-gpu requirement
pip install tensorforce[tf_gpu] -e .

--Installs with tensorflow (cpu) requirement
pip install tensorforce[tf] -e .

setup(name='tensorforce',
version='0.2',
description='Reinforcement learning for TensorFlow',
url='http://github.com/reinforceio/tensorforce',
author='reinforce.io',
author_email='[email protected]',
license='Apache 2.0',
packages=['tensorforce'],
install_requires=[
'numpy',
'six',
'gym>=0.7.4',
'universe>=0.21.3',
'scipy',
'pillow',
'pytest'
],
setup_requires=[
'numpy',
'recommonmark'
],
extras_require={
'tf': ['tensorflow>=1.2.0'],
'tf_gpu': ['tensorflow-gpu>=1.2.0'],
},
zip_safe=False)

I guess I am very motivated to use the library :o)

Thanks,

Pedro

from tensorforce.

krfricke avatar krfricke commented on July 21, 2024 1

I will add some instructions to the readme. Thanks for your help, Pedro!

from tensorforce.

krfricke avatar krfricke commented on July 21, 2024

Sorry, I forgot to remove tensorflow from the install_requires list when I added the extras_require dict. I pushed an update in f4fa33c. I currently can't confirm it fixes the issue as I don't have tensorflow-gpu installed. It would be great if you could check if the commit solves the issue.

from tensorforce.

pedronahum avatar pedronahum commented on July 21, 2024

Hi,

Confirmed! And the following 3 options are still valid:

--Assumes tensorflow or tensorflow-gpu installed
pip install tensorforce -e .

--Installs with tensorflow-gpu requirement
pip install tensorforce[tf_gpu] -e .

--Installs with tensorflow (cpu) requirement
pip install tensorforce[tf] -e .

Maybe it is worth to update the installation instructions as well...

Thanks!

from tensorforce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.