mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Tensorflow 1.10 and python 3.6 (#104)
* updating setup.py to install tensorflow 1.10 both on cpu and on gpu * allow python 3.6
This commit is contained in:
14
setup.py
14
setup.py
@@ -58,12 +58,14 @@ out = p.communicate()[0].decode('UTF-8')
|
|||||||
using_GPU = out != ''
|
using_GPU = out != ''
|
||||||
|
|
||||||
if not using_GPU:
|
if not using_GPU:
|
||||||
subprocess.check_call(['pip install '
|
# For linux wth no GPU, we install the Intel optimized version of TensorFlow
|
||||||
'https://anaconda.org/intel/tensorflow/1.6.0/download/tensorflow-1.6.0-cp35-cp35m-linux_x86_64.whl'],
|
if sys.platform == "linux" or sys.platform == "linux2":
|
||||||
shell=True)
|
subprocess.check_call(['pip install '
|
||||||
install_requires.append('tensorflow==1.6.0')
|
'https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl'],
|
||||||
|
shell=True)
|
||||||
|
install_requires.append('tensorflow==1.10.0')
|
||||||
else:
|
else:
|
||||||
install_requires.append('tensorflow-gpu==1.9.0')
|
install_requires.append('tensorflow-gpu==1.10.0')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='rl-coach',
|
name='rl-coach',
|
||||||
@@ -73,7 +75,7 @@ setup(
|
|||||||
author='Intel AI Lab',
|
author='Intel AI Lab',
|
||||||
author_email='coach@intel.com',
|
author_email='coach@intel.com',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires="==3.5.*",
|
python_requires=">=3.5.*",
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
package_data={'rl_coach': ['dashboard_components/*.css',
|
package_data={'rl_coach': ['dashboard_components/*.css',
|
||||||
'environments/doom/*.cfg',
|
'environments/doom/*.cfg',
|
||||||
|
|||||||
Reference in New Issue
Block a user