1
From Setuptools Import Setup, find_packages importerror:no module named set
wget http://peak.telecommunity.com/dist/ez_setup.py
Python ez_setup.py
2
Ile "/usr/local/lib/python2.7/sqlite3/__init__.py", line, in <module>
From DBAPI2 Import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line +, in <module>
From _sqlite3 Import *
Importerror:no module named _sqlite3
Edit PYTHON-2.7.3/MODULES/_SQLITE/CONNECTION.C Add the following 44-57 lines and recompile python2.7
/*** Add by Lai for **/
#ifdef Sqlite_int64_type
typedef sqlite_int64_type Sqlite_int64;
typedef unsigned sqlite_int64_type sqlite_uint64;
#elif defined (_msc_ver) | | defined (__BORLANDC__)
typedef __int64 Sqlite_int64;
typedef unsigned __int64 sqlite_uint64;
#else
typedef long Long int sqlite_int64;
typedef unsigned long long int sqlite_uint64;
#endif
typedef sqlite_int64 Sqlite3_int64;
typedef sqlite_uint64 Sqlite3_uint64;
/*** End ***/
3
# yum Install Sqlite-devel
#yum install-y Python-devel
From Setuptools Import Setup, find_packages importerror:no module named set