diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index 42bd965e88c86..0f5242659fb40 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -152,7 +152,7 @@ def import_optional_dependency( msg = ( f"`Import {install_name}` failed. {extra} " - f"Use pip or conda to install the {install_name} package." + f"Please install the {install_name} package." ) try: module = importlib.import_module(name) diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index a452d9136eed7..fab82c00f96fd 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -271,7 +271,7 @@ def test_s3_parquet(s3_bucket_public, s3so, df1): @td.skip_if_installed("fsspec") def test_not_present_exception(): - msg = "`Import fsspec` failed. Use pip or conda to install the fsspec package." + msg = "`Import fsspec` failed. Please install the fsspec package." with pytest.raises(ImportError, match=msg): read_csv("memory://test/test.csv") diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 2927b24624026..1a8aba6a07632 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -335,7 +335,7 @@ def test_get_engine_auto_error_message(): with pytest.raises(ImportError, match=match): get_engine("auto") else: - match = "Use pip or conda to install the fastparquet package" + match = "Please install the fastparquet package" with pytest.raises(ImportError, match=match): get_engine("auto")