diff --git a/pymongo/encryption.py b/pymongo/encryption.py index 1986f5f50..d9afe048b 100644 --- a/pymongo/encryption.py +++ b/pymongo/encryption.py @@ -387,7 +387,7 @@ class ClientEncryption(object): raise ConfigurationError( "client side encryption requires the pymongocrypt library: " "install a compatible version with: " - "python -m pip install pymongo['encryption']") + "python -m pip install 'pymongo[encryption]'") if not isinstance(codec_options, CodecOptions): raise TypeError("codec_options must be an instance of " diff --git a/pymongo/encryption_options.py b/pymongo/encryption_options.py index bc469f0ea..60bb41e33 100644 --- a/pymongo/encryption_options.py +++ b/pymongo/encryption_options.py @@ -115,7 +115,7 @@ class AutoEncryptionOpts(object): raise ConfigurationError( "client side encryption requires the pymongocrypt library: " "install a compatible version with: " - "python -m pip install pymongo['encryption']") + "python -m pip install 'pymongo[encryption]'") self._kms_providers = kms_providers self._key_vault_namespace = key_vault_namespace