python3 -m pip install VS pip3 install
问题 I always use pip install (which I think is equivalent to pip3 install since I only have python3 in my env) to install packages. But I recently heard python3 -m pip install is better. Why? 回答1: I would advise against ever calling any pip somecommand (or pip3 ) script directly. Instead it's much safer to call pip 's executable module for a specific Python interpreter explicitly, something of the form path/to/pythonX.Y -m pip somecommand . There are many advantages to this, for example: It is