Skip to content

Commit dcd1eab

Browse files
committed
Install Box2D using conda instead of pip, and add note for Windows+pip users
1 parent 24efc9b commit dcd1eab

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6+
- box2d-py # used only in chapter 18, exercise 8
67
- ftfy=6.0 # used only in chapter 16 by the transformers library
78
- graphviz # used only in chapter 6 for dot files
89
- ipython=7.28 # a powerful Python shell
@@ -43,7 +44,7 @@ dependencies:
4344
- tfx~=1.3.0 # platform to deploy production ML pipelines
4445
- transformers~=4.11.3 # Natural Language Processing lib for TF or PyTorch
4546
- urlextract~=1.4.0 # optionally used in chapter 3, exercise 4
46-
- gym[box2d,atari,accept-rom-license]~=0.21.0 # used only in chapter 18
47+
- gym[atari,accept-rom-license]~=0.21.0 # used only in chapter 18
4748

4849
# Specific lib versions to avoid conflicts
4950
- attrs=20.3

requirements.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# TensorFlow is much easier to install using Anaconda, especially
2-
# on Windows or when using a GPU. Please see the installation
3-
# instructions in INSTALL.md
1+
# WARNING: Using Anaconda instead of pip is highly recommended, especially on
2+
# Windows or when using a GPU. Please see the installation instructions in
3+
# INSTALL.md
44

55

66
##### Core scientific packages
@@ -49,6 +49,11 @@ tensorflow-addons~=0.14.0
4949
# https://github.com/openai/gym#installing-everything
5050
gym[Box2D,atari,accept-rom-license]~=0.21.0
5151

52+
# WARNING: on Windows, installing Box2D this way requires:
53+
# * Swig: http://www.swig.org/download.html
54+
# * Microsoft C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
55+
# It's much easier to use Anaconda instead.
56+
5257
tf-agents~=0.10.0
5358

5459
##### Image manipulation

0 commit comments

Comments
 (0)