pip 3用于python3 版本
pip2 用于python2版本
pip好像可以通用
“pip2” is for Python2, “pip3″ is for Python3. “pip” will point to one of these depending on which Python is the default on your system.
If you are installing the packages system wide, you should either use your OS’s package manager or use “pip2” or “pip3” as appropriate. If you want the package to be available to both Python versions then you will need to install it twice. If your package is written to be compatible with both Python 2 and Python 3, then it will probably already be packaged for both versions.
You should also consider using a “virtualenv” instead of installing packages system-wide
时间: 2024-11-10 18:28:34