我正在尝试安装Neper-3.3.0,但遇到了一些问题。
说明说:
创建一个构建目录,例如作为Neper src目录的子目录,
$ mkdir build
mkdir build
,并且名为build
的文件夹出现在src文件夹中从构建目录中运行CMake,指向Neper的src目录,
$ cd build
$ cmake ..
构建Neper,
$ make
使用选项-j
使用多线程编译。
在系统上(以root用户身份)安装Neper,
$ make install
答案 0 :(得分:0)
build文件夹应与src文件夹处于同一级别(即,您可以使用tst = [1,3,4,6,8,22,24,25,26,67,68,70,72] # considering this as already sorted. else use tst.sort()
il = []
ol = []
for k, v in enumerate(tst): # enumerate is used give index to list element
if k > 0: # to avoid tst[-1] which will get the last element of the list
if abs(tst[k] - tst[k-1]) < 3: # check if differnce is less than 3
if tst[k-1] not in il: # insert to inner list "il" only if it doesn't already exist
il.append(tst[k-1])
if tst[k] not in il: # insert to inner list "il" only if it doesn't already exist
il.append(tst[k])
else:
ol.append(list(il)) # if difference is greater than 2 then append it to outer list "ol"
il = [] # clear the inner list "il"
ol.append(list(il)) # finaly append the last "il" to "ol" which didnt went in else for our case "[67, 68, 70, 72]"
print (ol)
#Result: [[1, 3, 4, 6, 8], [22, 24, 25, 26], [67, 68, 70, 72]]
查看它)。因此,转到下载的neper文件夹,然后:
ls
mkdir build
cd build
cmake ../src
make
二进制文件将在那里。如果要指定安装路径等,请在neper
步骤