Skip to content

Instantly share code, notes, and snippets.

@Bouke
Bouke / gist:11261620
Last active August 3, 2023 01:46
Multiple Python installations on OS X

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

@rmoff
rmoff / foo.md
Last active January 5, 2024 17:17
cx_Oracle install on MacOS
  1. 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
  1. Unzip and move to /opt

  2. Create symlink

@funseiki
funseiki / example_fruits.py
Created July 13, 2018 04:42
SqlAlchemy AttributeError for Unmapped Subclasses
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))
@funseiki
funseiki / eager_loading.py
Last active August 12, 2019 22:47
SqlAlchemy Eager Loading Example Issue
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://"