Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install pysql via python pip




pysql - PySQL is an Oracle enhanced client, it belongs to Classifiers:

- Programming Language :: Python :: 2.5
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7

When you know about this project and you want to new install pysql to support your project or you get trouble as ModuleNotFoundError: No module named "pysql" or ImportError: cannot import name "pysql" in your project, let follow this tutorial to install pysql



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_pysql_env

- Active the virtual environment

test_pysql_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_pysql_env

- Active the virtual environment

source test_pysql_env/bin/active


Step 2: OK, now, let flow below content to start the installation pysql

To install pysql on Windows(CMD):

py -m pip install pysql

To install pysql on Unix/macOs:

pip install pysql


Step 3: If you want to install a specific pysql version, add ==<pysql version> to the end command line

Example:

pip install pysql==0.5


Please see the version list below table:

VersionReleased dateCommand
pysql 0.162014-03-23T08:36:04Windows:

py -m pip install pysql==0.16

Unix/macOs:

pip install pysql==0.16

pysql 0.152010-06-13T16:47:36Windows:

py -m pip install pysql==0.15

Unix/macOs:

pip install pysql==0.15

pysql 0.142010-02-14T21:11:28Windows:

py -m pip install pysql==0.14

Unix/macOs:

pip install pysql==0.14

pysql 0.132009-02-15T17:03:45Windows:

py -m pip install pysql==0.13

Unix/macOs:

pip install pysql==0.13

pysql 0.122009-01-26T21:31:32Windows:

py -m pip install pysql==0.12

Unix/macOs:

pip install pysql==0.12

pysql 0.112007-12-15T18:04:02Windows:

py -m pip install pysql==0.11

Unix/macOs:

pip install pysql==0.11

pysql 0.102007-03-19T08:16:45Windows:

py -m pip install pysql==0.10

Unix/macOs:

pip install pysql==0.10

pysql 0.92007-02-04T15:01:23Windows:

py -m pip install pysql==0.9

Unix/macOs:

pip install pysql==0.9

pysql 0.82007-01-21T18:03:21Windows:

py -m pip install pysql==0.8

Unix/macOs:

pip install pysql==0.8

pysql 0.72007-01-06T14:30:21Windows:

py -m pip install pysql==0.7

Unix/macOs:

pip install pysql==0.7

pysql 0.62006-12-13T19:55:09Windows:

py -m pip install pysql==0.6

Unix/macOs:

pip install pysql==0.6

pysql 0.52006-12-11T09:50:16Windows:

py -m pip install pysql==0.5

Unix/macOs:

pip install pysql==0.5


Step 4: Otherwise, you can install pysql from local archives:

Download the distribution file from pysql-0.16.tar.gz or the specific pysql version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pysql_downloaded_file>

On Unix/macOs:

pip install <path_to_pysql_downloaded_file>


List distribution:


Project link:

- Homepage