The Python docs specifically mention that you should use double quotes with pip when installing specific package versions:
When using comparator operators such as >, < or some other special character which get interpreted by shell, the package name and the version should be enclosed within double quotes:
python -m pip install SomePackage==1.0.4 # specific version python -m pip install "SomePackage>=1.0.4" # minimum version
This is unexpected for me since most Unix shells expand variables within double quotes but not single quotes, and I would expect us to want the string to be passed literally to pip without any possible shell expansion taking place.
I mostly see pip used with single quotes "in the wild" and the second comment on this answer makes me think that this is a Windows compatibility issue. Is this correct or is there any advantage of using double quotes with pip in Unix shells such as Bash and Zsh?