码迷,mamicode.com
首页 > 其他好文 > 详细

from setuptools import setup, find_packages ImportError: No module named set

时间:2016-04-14 01:22:41      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:

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 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3

编辑Python-2.7.3/Modules/_sqlite/connection.c加入如下44-57行,然后重新编译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

标签:

原文地址:http://www.cnblogs.com/jking10/p/5389455.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!