- Download Instant Client:
- instantclient-basic-macos.x64-11.2.0.4.0.zip
- instantclient-sdk-macos.x64-11.2.0.4.0.zip
- instantclient-sqlplus-macos.x64-11.2.0.4.0.zip
-
Unzip and move to /opt
-
Create symlink
from sqlalchemy import * | |
from sqlalchemy.orm import * | |
from sqlalchemy.ext.associationproxy import association_proxy | |
from sqlalchemy.ext.declarative import declarative_base | |
def buildConnectionString(db_type, server, port, name, user, password): | |
# We're using an in-memory data | |
if db_type == "sqlite": | |
return "sqlite://" |
from sqlalchemy import * | |
from sqlalchemy.orm import * | |
from sqlalchemy.ext.associationproxy import association_proxy | |
metadata = MetaData() | |
fruitTypesTable = Table( | |
'FruitTypes', metadata, | |
Column('type_id', Integer, primary_key=True), | |
Column('name', String(256)) |
Unzip and move to /opt
Create symlink
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9