Linux command
pip3 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Install package
pip3 install [package]
Install specific version
pip3 install [package]==[version]
Upgrade package
pip3 install --upgrade [package]
Uninstall package
pip3 uninstall [package]
List installed packages
pip3 list
说明
pip3 is the Python 3 package installer. Functionally identical to pip but explicitly targets the Python 3 environment. On systems with both Python 2 and Python 3, pip3 ensures packages install to the correct interpreter. pip3 downloads packages from the Python Package Index (PyPI) by default. It handles dependency resolution, version constraints, and can install from local files, version control URLs, or requirements files. Use pip3 install -r requirements.txt to install from a requirements file.
参数
- install _package_
- Install package.
- uninstall _package_
- Remove package.
- list
- List installed packages.
- freeze
- Output installed packages in requirements format.
- show _package_
- Show package details.
- --user
- Install to user site-packages.
- -r _file_
- Install from requirements file.
FAQ
What is the pip3 command used for?
pip3 is the Python 3 package installer. Functionally identical to pip but explicitly targets the Python 3 environment. On systems with both Python 2 and Python 3, pip3 ensures packages install to the correct interpreter. pip3 downloads packages from the Python Package Index (PyPI) by default. It handles dependency resolution, version constraints, and can install from local files, version control URLs, or requirements files. Use pip3 install -r requirements.txt to install from a requirements file.
How do I run a basic pip3 example?
Run `pip3 install [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install _package_ do in pip3?
Install package.