From Setuptools Import Setup, find_packages importerror:no module named set

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.