Python Tutorials
Python File Handling
Python Modules
PIP is a Python package package manager, or modules if you prefer.
Note: If you have a version of Python 3.4 or later, PIP is installed automatically.
The package contains all the files you need to get the module.
Python code library modules that you can add to your project.
Navigate to your command line to the Python directory, then type the following:
Check PIP version:
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip --version
If you do not have a PIP installed, you can download it and install it on this page: https://pypi.org/project/pip/
Downloading the package is very easy.
Open the command line interface and tell PIP to download the package you want.
Navigate to your command line to the Python directory, then type the following:
Download a package named "camelcase":
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip
install camelcase
Now download and install your first package!
Once the package is installed, it is ready for use.
Import the "camelcase" package into your project.
Import and use "camelcase":
import camelcase
c = camelcase.CamelCase()
txt = "hello world"
print(c.hump(txt))
Find more packages at https://pypi.org/.
Uninstall the package named "camelcase":
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip
uninstall camelcase
The PIP Package Manager will ask you to confirm that you want to delete the camel package:
Uninstalling camelcase-02.1:
Would remove:
c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camecase-0.2-py3.6.egg-info
c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camecase\*
Proceed (y/n)?
Press y and the package will be released.
Use the list command to list all packages included in your system:
List installed packages:
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list
Result:
Package Version
-----------------------
camelcase 0.2
mysql-connector 2.1.6
pip
18.1
pymongo 3.6.1
setuptools 39.0.1