Difference between revisions of "Python:Install"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
Wheels are preconfigured packages that allow easy off-line installation. They usually have a .whl extension. | Wheels are preconfigured packages that allow easy off-line installation. They usually have a .whl extension. | ||
+ | |||
+ | ;pip list | ||
+ | :List all installed packages and their version. | ||
+ | ;Same can be done on python prompt like this | ||
+ | <syntaxhighlight lang=python> | ||
+ | import <module> | ||
+ | <module>.__version__ | ||
+ | </syntaxhighlight> | ||
;pip install <wheelfile> | ;pip install <wheelfile> | ||
Line 8: | Line 16: | ||
;pip uninstall <package> | ;pip uninstall <package> | ||
:uninstall <package> | :uninstall <package> | ||
+ | |||
+ | ;pip list --outdated | ||
+ | :List all package that can be upgraded | ||
+ | |||
+ | ;pip install --upgrade <package> | ||
+ | :Upgrade a package to the latest version |
Latest revision as of 21:47, 20 August 2021
pip is the python program for module installation and upgrade.
Wheels are preconfigured packages that allow easy off-line installation. They usually have a .whl extension.
- pip list
- List all installed packages and their version.
- Same can be done on python prompt like this
import <module>
<module>.__version__
- pip install <wheelfile>
- install from <wheelfile>
- pip uninstall <package>
- uninstall <package>
- pip list --outdated
- List all package that can be upgraded
- pip install --upgrade <package>
- Upgrade a package to the latest version