Skip to content

Commit 6bdc8ee

Browse files
Improve documentation, particularly regarding proxy usage.
1 parent 2ba66bb commit 6bdc8ee

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

doc/src/installation.rst

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Quick Start cx_Oracle Installation
4242
the source package will be downloaded instead. This will be compiled
4343
and the resulting binary installed.
4444

45+
If you are behind a proxy, specify your proxy server::
46+
47+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
48+
4549
- Add Oracle 19, 18, 12 or 11.2 client libraries to your operating
4650
system library search path such as ``PATH`` on Windows or
4751
``LD_LIBRARY_PATH`` on Linux. On macOS move the files to ``~/lib``
@@ -189,6 +193,10 @@ install cx_Oracle from `PyPI
189193

190194
python -m pip install cx_Oracle --upgrade
191195

196+
If you are behind a proxy, specify your proxy server::
197+
198+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
199+
192200
This will download and install a pre-compiled binary `if one is
193201
available <https://pypi.python.org/pypi/cx_Oracle>`__ for your
194202
architecture. If a pre-compiled binary is not available, the source
@@ -375,6 +383,10 @@ package to install cx_Oracle from `PyPI
375383

376384
python -m pip install cx_Oracle --upgrade
377385

386+
If you are behind a proxy, specify your proxy server::
387+
388+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
389+
378390
This will download and install a pre-compiled binary `if one is
379391
available <https://pypi.python.org/pypi/cx_Oracle>`__ for your
380392
architecture. If a pre-compiled binary is not available, the source
@@ -505,6 +517,10 @@ package to install cx_Oracle from `PyPI
505517

506518
python -m pip install cx_Oracle --upgrade
507519

520+
If you are behind a proxy, specify your proxy server::
521+
522+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
523+
508524
The source will be downloaded, compiled, and the resulting binary
509525
installed.
510526

@@ -650,8 +666,18 @@ If installation fails:
650666
using a different method. **Google anything that looks like an error.**
651667
Try some potential solutions.
652668

653-
- Was there a network connection error? Do you need to see the environment
654-
variables ``http_proxy`` and/or ``https_proxy``?
669+
- Was there a network connection error? Do you need to set the
670+
environment variables ``http_proxy`` and/or ``https_proxy``? Or
671+
try ``pip install --proxy=http://proxy.example.com:80 cx_Oracle
672+
--upgrade``?
673+
674+
- If upgrading gave no errors but the old version is still
675+
installed, try ``pip install cx_Oracle --upgrade
676+
--force-reinstall``
677+
678+
- If you do not have access to modify your system version of
679+
Python, can you use ``pip install cx_Oracle --upgrade --user``
680+
or venv?
655681

656682
- Do you get the error "``No module named pip``"? The pip module is builtin
657683
to Python from version 2.7.9 but is sometimes removed by the OS. Use the

0 commit comments

Comments
 (0)