Installation guide
mxODBC - Python ODBC Database Interface
Note that you may need to have admin or root privileges in order to successfully
complete the following step, unless you are using a virtualenv-based setup.
1. First, unzip the downloaded prebuilt package archive to a temporary
directory.
2. Then run the following command using the Python installation you intend
to use in the package directory egenix-mxodbc-3.3.*/:
python setup.py install
Note that you can use the standard distutils install command options, e.g. to
install the package to a different prefix (using
--prefix) or a home directory
(using
--home). For more information on the available options, please have a look
at the distutils install command documentation
.
After installation, you can remove the temporary directory without causing harm.
Please keep the prebuilt package archive around, in case you want to uninstall the
package again.
Step 3
Now that you have installed the product code, you need to install the proper
licenses in order for the mxODBC to startup correctly.
Go to the temporary directory where you unzipped the license archive and change
to the license subdirectory which contains the license for the installation you are
currently working on.
Copy the two files mxodbc_license.py and mxodbc_license.txt from the license
subdirectory to the Python site-packages/ directory.
Step 4
Test the installation by trying to import mxODBC:
$ python
>>> import mx.ODBC.Manager
>>>
If you don't get any ImportError, you have successfully installed mxODBC.
2.4.3 Uninstall
Automatic Uninstall
In order to uninstall the mxODBC package, run the setup.py of the installation
package using the
uninstall command and the same options you passed to the
install command when you installed the package:
16