no matches found: stable-baselines3[extra]
The error message "no matches found: stable-baselines3[extra]" usually occurs when you're trying to install the stable-baselines3
package with extra dependencies using a shell that doesn't recognize the square brackets as part of the package name. This is common with shells like zsh
, which use square brackets for pattern matching.
To solve this issue, you can do one of two things:
pip install stable-baselines3\[extra\]
pip install 'stable-baselines3[extra]'
This command tells pip
to install the stable-baselines3
package along with the additional dependencies specified under the extra
option. The extra dependencies usually include additional packages that are not strictly necessary for the basic functionality but might enable some advanced features.
Remember that you might need to use pip3
instead of pip
if you're using Python 3 and your system defaults to Python 2 when using pip
. Also, ensure that you have the necessary permissions to install the package, or use sudo
(for Linux/macOS) or run your command prompt as an administrator (for Windows) if required.
If you continue to have issues, make sure you have an active internet connection and that the package name is correct. You might also want to check if there are any known issues with the package repository or if there's an outage affecting the Python Package Index (PyPI).