Make installation command compatible with ZSH by tom-doerr · Pull Request #376 · DLR-RM/stable-baselines3 (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation5 Commits5 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

tom-doerr

Description

This makes the command work in Zsh.

Motivation and Context

Command fails if package is not in quotation marks:

➜  stable-baselines3 git:(fix_extra_install_command) ✗ pip install stable-baselines3[extra]  
zsh: no matches found: stable-baselines3[extra]

Types of changes

Checklist:

Note: You can run most of the checks using make commit-checks.

Note: we are using a maximum length of 127 characters per line

@tom-doerr

@Miffyli

Hey! Please remember to fill in the steps in the checklist (changelog, contributors).

Regarding PR: rather than updating the example of pip install ... command, I would remove the quotation marks and add a comment right after it saying something like "Note: Some shells like Zsh require quotation marks around brackets, i.e. pip install [...]".

@tom-doerr

Adding a comment certainly makes sense when only few users are affected. However Zsh isn't the niche shell it used to be and now is even the default shell on Macs. Considering that, should I still add it as a comment?

@Miffyli

Ah, good to know it has been set as default on Macs! :)

After discussing with @araffin we recommend to go with the "add a comment option" (a comment beside pip install command that tells to use this way on Zsh, along with a long to this stackoverflow answer in case users want to avoid similar errors in future). Update both installation documentation and README file.

@tom-doerr

Should be ready to merge now.

araffin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM =)

Next time, please open a "documentation" issue first ;)

araffin added a commit that referenced this pull request

May 3, 2021

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Added gym-pybullet-drones

Longer title underline

Co-authored-by: Antonin Raffin antonin.raffin@ensta.org

Co-authored-by: Anssi kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Anssi "Miffyli" Kanervisto kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me Co-authored-by: Jacopo Panerati jacopo.panerati@utoronto.ca Co-authored-by: Justin Terry justinkterry@gmail.com Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Tom Dörr tomdoerr96@gmail.com Co-authored-by: Tom Dörr tom.doerr@tum.de Co-authored-by: Costa Huang costa.huang@outlook.com

araffin added a commit that referenced this pull request

May 11, 2021

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Added gym-pybullet-drones

Longer title underline

Co-authored-by: Antonin Raffin antonin.raffin@ensta.org

Co-authored-by: Anssi kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Anssi "Miffyli" Kanervisto kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me Co-authored-by: Jacopo Panerati jacopo.panerati@utoronto.ca Co-authored-by: Justin Terry justinkterry@gmail.com Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Tom Dörr tomdoerr96@gmail.com Co-authored-by: Tom Dörr tom.doerr@tum.de Co-authored-by: Costa Huang costa.huang@outlook.com

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org Co-authored-by: Anssi "Miffyli" Kanervisto kaneran21@hotmail.com Co-authored-by: Adam Gleave adam@gleave.me Co-authored-by: Jacopo Panerati jacopo.panerati@utoronto.ca Co-authored-by: Justin Terry justinkterry@gmail.com Co-authored-by: Tom Dörr tomdoerr96@gmail.com Co-authored-by: Tom Dörr tom.doerr@tum.de Co-authored-by: Costa Huang costa.huang@outlook.com

leor-c pushed a commit to leor-c/stable-baselines3 that referenced this pull request

Aug 26, 2021

@tom-doerr @leor-c

leor-c pushed a commit to leor-c/stable-baselines3 that referenced this pull request

Aug 26, 2021

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Adam Gleave adam@gleave.me

Added gym-pybullet-drones

Longer title underline

Co-authored-by: Antonin Raffin antonin.raffin@ensta.org

Co-authored-by: Anssi kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Adam Gleave adam@gleave.me

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org

Co-authored-by: Anssi "Miffyli" Kanervisto kaneran21@hotmail.com

Co-authored-by: Adam Gleave adam@gleave.me Co-authored-by: Jacopo Panerati jacopo.panerati@utoronto.ca Co-authored-by: Justin Terry justinkterry@gmail.com Co-authored-by: Anssi kaneran21@hotmail.com Co-authored-by: Tom Dörr tomdoerr96@gmail.com Co-authored-by: Tom Dörr tom.doerr@tum.de Co-authored-by: Costa Huang costa.huang@outlook.com

Co-authored-by: Antonin RAFFIN antonin.raffin@ensta.org Co-authored-by: Anssi "Miffyli" Kanervisto kaneran21@hotmail.com Co-authored-by: Adam Gleave adam@gleave.me Co-authored-by: Jacopo Panerati jacopo.panerati@utoronto.ca Co-authored-by: Justin Terry justinkterry@gmail.com Co-authored-by: Tom Dörr tomdoerr96@gmail.com Co-authored-by: Tom Dörr tom.doerr@tum.de Co-authored-by: Costa Huang costa.huang@outlook.com