WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.


pip is being invoked by an old script wrapper
pip is being invoked by an old script wrapper
% pip3 install requests -q

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.

Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.

To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.

WARNING: The script normalizer is installed in '/Users/code2care/Library/Python/3.8/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

I recently ran into the above error after I upgraded my pip3 version to the latest one. I did read https://github.com/pypa/pip/issues/5599 and it seems that adding -m pip along with the command suppresses this warning.

Solution: What worked was I had to add the Python 3.8 path to the $PATH variable, by doing so the warning was gone.

Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram