Python | How to Install python packages

Veröffentlicht am: 12 April 2020
auf dem Kanal: Kishan Mashru
30,005
239

This is the first video of Database programming with Python. In this video, we will see how to install the cx_Oracle package which is required to connect to the Oracle database.

We will use the command line and perform the installation using the PIP install command. pip is a de facto standard package-management system used to install and manage software packages written in Python. Many packages can be found in the default source for packages and their dependencies — Python Package Index (PyPI).

Most distributions of Python come with pip preinstalled. Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.

We will also see how to uninstall any package, and how to install any specific version of the package.

We will also see how we can use the requirement.txt file to list all the needed packages and then install all of them with a single pip command.

The cx_Oracle is a Python extension module that enables access to Oracle Database. It conforms to the Python database API 2.0 specification with a considerable number of additions and a couple of exclusions.

cx_Oracle 7 has been tested with Python version 2.7, and with versions 3.5 through 3.8. You can use cx_Oracle with Oracle 11.2, 12, 18 and 19 client libraries. Oracle's standard client-server version interoperability allows connection to both older and newer databases. For example, Oracle 19c client libraries can connect to Oracle Database 11.2.


Links to all videos related to Database programming with Python
=================================================================
1. Install cx_Oracle :    • Python | How to Install python packages  
2. Create connection and create table :    • Python Programming | Connect to an Oracle ...  
3. Insert record into the table with execute() :    • Python programming | Insert data into data...  
4. Insert multiple records into the table with executemany() :    • Python programming | How to insert multipl...  
5. Retrive all the data from the table using the fetchall() :    • Python programming | Select or get data fr...  
6. Retrive one record from the table using the fetchone() :    • Python programming | Select or get data fr...  
7. Retrive specific number of records from the table using the fetchmany() :    • How to read data from table in python | ex...  
8. Use Bind Variables in the select statement to avoid complicating the query with concatenation operation :    • Python programming | Executing SQL queries...  
9. use callproc method to execute oracle procedure with parameters :    • Python programming | How to execute Oracle...  
10. use callfunc method to execute oracle function with parameters :    • How to execute Oracle Function from Python...  

Tools used in creating and executing the scripts:
==================================================
cmd - command prompt
Jupyter Notebook
VSCode - Visual Studio Code


Links used while creating the content:
=======================================
https://en.wikipedia.org/wiki/Pip_(pa...)

https://oracle.github.io/python-cx_Or...

https://github.com/oracle/python-cx_O...


Content and video created by - Kishan Mashru


Auf dieser Seite können Sie das Online-Video Python | How to Install python packages mit der Dauer online in guter Qualität ansehen, das der Benutzer Kishan Mashru 12 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 30,005 Mal angesehen und es wurde von 239 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!