小编zaw*_*wdd的帖子

在python中安装Twisted失败并显示'No such file'

我想在Python中使用Twisted,但是当我安装时,出现此错误,如何处理它?

....
running build_ext
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c conftest.c -o conftest.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c conftest.c -o conftest.o
building 'twisted.runner.portmap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c twisted/runner/portmap.c -o build/temp.linux-i686-2.7/twisted/runner/portmap.o
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

python linux twisted

14
推荐指数
1
解决办法
9747
查看次数

Apache Solr使用哪种算法进行排序?

我想使用Solr对1000万行数据进行排序,然后使用limit来获取其中的一部分.像这样:

select * from table sort by click limit 0,10
Run Code Online (Sandbox Code Playgroud)

Solr使用哪种排序算法?快速排序?泡泡排序?还是其他一些?

sorting lucene solr

1
推荐指数
1
解决办法
504
查看次数

java类初始化命令,它是如何工作的?

package ali;

public class test {
public static int n = 99;

public static test t1 = new test("t1");
public static test t2 = new test("t2");

public static int i = 0;
public static int j = i;
{
    System.out.println("construct block");
}

static {
    System.out.println("static construct block");
}

public test(String str){
    System.out.println((++j) + ":" + "  i="+ i + "  n="+n+str);
    n++;i++;
}

public static void main(String [] args){
    test test1 = new test("initl");
}
}
Run Code Online (Sandbox Code Playgroud)

跑完后:

construct block
1: …
Run Code Online (Sandbox Code Playgroud)

java initialization class

0
推荐指数
1
解决办法
87
查看次数

标签 统计

class ×1

initialization ×1

java ×1

linux ×1

lucene ×1

python ×1

solr ×1

sorting ×1

twisted ×1