Skip to content

Commit c89192a

Browse files
Update README and requirements to make development install less brittle
1 parent d8355bd commit c89192a

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,25 @@ For continued usage of MDP Playground as it is in development, please continue r
9898

9999
### Production use
100100
We recommend using `conda` to manage environments. After setup of the environment, you can install MDP Playground in two ways:
101+
101102
#### Manual
102-
To install MDP Playground manually, clone the repository and run:
103+
To install MDP Playground manually (this might be the preferred way if you want easy access to the included experiments), clone the repository and run:
103104
```bash
105+
# If you just want to use the environments as in example.py:
106+
pip install -e .
107+
108+
# If you want to run experiments using Ray, etc.:
104109
pip install -r requirements.txt
105110
pip install -e .[extras]
106111
```
107-
This might be the preferred way if you want easy access to the included experiments.
108112

109113
#### From PyPI
110114
Alternatively, MDP Playground can also be installed from PyPI. Just run:
111115
```bash
116+
# If you just want to use the environments as in example.py:
117+
pip install mdp_playground
118+
119+
# If you want to run experiments using Ray, etc.:
112120
pip install mdp_playground[extras]
113121
```
114122

setup.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
package_data = {"": ["*"]}
1313

1414
extras_require = [
15-
"ray[default,rllib]==1.0.0",
16-
"tensorflow==2.5.0",
15+
"ray[default,rllib]>=1.0.0",
16+
"tensorflow>=2.5.0",
1717
"pillow>=6.1.0",
18-
"requests==2.22.0",
19-
"configspace==0.4.10",
18+
"requests>=2.22.0",
19+
"configspace>=0.4.10",
2020
"scipy>=1.7.0",
2121
"pandas>=0.25.0",
22-
"gym[atari]==0.20",
22+
"gym[atari]<=0.25",
2323
"matplotlib",
24-
"opencv-python==4.2.0.34", # due to https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs
25-
"opencv-python-headless==4.2.0.34", # and https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2
24+
"opencv-python>=4.2.0.34", # due to https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs
25+
"opencv-python-headless>=4.2.0.34", # and https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2
2626
]
2727

2828
extras_require_disc = [

0 commit comments

Comments
 (0)