zoukankan      html  css  js  c++  java
  • from setuptools import setup, find_packages ImportError: No module named set

    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

    sshpass -f pass.txt ssh 192.168.0.100 tail -f /var/log/nginx/bod-access.log|ngxtop

  • 相关阅读:
    推荐影视
    《算法设计》一、引言:某些典型的问题
    使用google地图API
    Python导入不同文件夹下模块
    Pycharm之远程编程
    linux之scp
    Photoshop脚本之jpg转换成eps
    win7重新安装win7
    查看修改swap空间大小
    用 EasyBCD 在 Win7/8 中硬盘安装 Ubuntu
  • 原文地址:https://www.cnblogs.com/jking10/p/5389455.html
Copyright © 2011-2022 走看看