pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。
下载get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
运行
python get-pip.py
//Installing collected packages: pip, setuptools, wheel
//The script wheel.exe is installed D:\python-3.7.2\Scripts' which is not on PATH.
//Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
//Successfully installed pip-18.1 setuptools-40.6.3 wheel-0.32.3
命令行
pip <pip arguments>
python -m pip <pip arguments>
如下载组件
pip install 包名
python -m pip install 包名
如果是使用paython的.exe安装,可以同时安装pip
网友评论