Brew: Python2 installs without sqlite3

Created on 28 Sep 2016  路  4Comments  路  Source: Homebrew/brew

Reproduction steps:
0) MacOS Sierra
1) brew install python
2) python -c 'import sqlite3'

ImportError: No module named _sqlite3

The SQLite is listed as a recommended dependency and is installed. There is no --with-sqlite and --without-sqlite is not used.

Running brew reinstall python did not help. Used to work out of the box on El Capitan.

Most helpful comment

All 4 comments

Please install CLT

sudo xcode-select --install

and try again.

Thank you, I did indeed still have the command line tools from El Capitan.

User error.

Should brew doctor catch this?

I think this problem is specific to python and a few other formulae (see the pour_bottle block in python.rb) so IMO it may not be the best idea to warn about this in general.

We will consider how to better deal with this problem. Meanwhile, glad the problem is fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MikeMcQuaid picture MikeMcQuaid  路  3Comments

paanvaannd picture paanvaannd  路  4Comments

hktalent picture hktalent  路  4Comments

rtobrien picture rtobrien  路  3Comments

javian picture javian  路  4Comments