Skip to content
3 changes: 2 additions & 1 deletion pandas/compat/_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def import_optional_dependency(

msg = (
f"`Import {install_name}` failed. {extra} "
f"Use pip or conda to install the {install_name} package."
f"Use pip, conda, or your preferred package "
f"manager to install the {install_name} package."
)
try:
module = importlib.import_module(name)
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/test_fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. Use pip, conda, or your preferred package manager to install the fsspec package."
with pytest.raises(ImportError, match=msg):
read_csv("memory://test/test.csv")

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "Use pip, conda, or your preferred package manager to install the fastparquet package"
with pytest.raises(ImportError, match=match):
get_engine("auto")

Expand Down
Loading