Python PIP







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



Python PIP



❮ Previous
Next ❯



What is PIP?


PIP is a package manager for Python packages, or modules if you like.



Note: If you have Python version 3.4 or later, PIP is included by default.






What is a Package?


A package contains all the files you need for a module.


Modules are Python code libraries you can include in your project.





Check if PIP is Installed



Navigate your command line to the location of Python's script directory, and type the following:



Example


Check PIP version:



C:UsersYour NameAppDataLocalProgramsPythonPython36-32Scripts>pip --version





Install PIP



If you do not have PIP installed, you can download and install it from this page:
https://pypi.org/project/pip/




Download a Package


Downloading a package is very easy.


Open the command line interface and tell PIP to download the package you
want.



Navigate your command line to the location of Python's script directory, and type the following:




Example


Download a package named "camelcase":



C:UsersYour NameAppDataLocalProgramsPythonPython36-32Scripts>pip
install camelcase



Now you have downloaded and installed your first package!










googletag.cmd.push(function() { googletag.display('div-gpt-ad-1493883843099-0'); });






Using a Package



Once the package is installed, it is ready to use.


Import the "camelcase" package into your project.




Example


Import and use "camelcase":



import camelcase

c = camelcase.CamelCase()

txt = "hello world"

print(c.hump(txt))

Run example »




Find Packages



Find more packages at https://pypi.org/.






❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods