0

我正在我的 Linux 上安装存储库,但似乎无法正确下载包。作为背景,我是一名研究生研究助理,我的博士后正在构建一个他希望我测试的包。这是一个新版本,因此可能是软件包问题,但我也是编码新手,可能只是我/我的电脑。

我在尝试pip install rsnapsim-ssa-cpp

我仔细检查了我的计算机上是否有 cpp(我收集的 linux 上是 g++)并且它是最新的。

它开始工作,但是当它开始制造轮子时,它就坏了。

主要错误,在所有错误代码的末尾是,

ERROR: Could not build wheels for rsnapsim-ssa-cpp which use PEP 517 and cannot be installed directly

错误的完整描述如下

(base) bsilagy@ENS12372 ~ $ pip install rsnapsim-ssa-cpp
Collecting rsnapsim-ssa-cpp
  Using cached rsnapsim_ssa_cpp-0.0.12.tar.gz (97 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy in ./anaconda3/lib/python3.8/site-packages (from rsnapsim-ssa-cpp) (1.20.1)
Requirement already satisfied: Cython>=0.26.0 in ./anaconda3/lib/python3.8/site-packages (from rsnapsim-ssa-cpp) (0.29.21)
Building wheels for collected packages: rsnapsim-ssa-cpp
  Building wheel for rsnapsim-ssa-cpp (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/bsilagy/anaconda3/bin/python /home/bsilagy/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpyouz1bwc
       cwd: /tmp/pip-install-ax10ddh9/rsnapsim-ssa-cpp
  Complete output (50 lines):
  Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)
  /home/bsilagy/anaconda3
  Located eigen3/Eigen/Dense:
  ['/home/bsilagy/anaconda3/include', '/home/bsilagy/anaconda3/pkgs/eigen-3.3.7-hfd86e86_0/include']
  running bdist_wheel
  running build
  running build_ext
  skipping 'ssa_translation_lowmem.cpp' Cython extension (up-to-date)
  building 'ssa_translation_lowmem' extension
  creating build
  creating build/temp.linux-x86_64-3.8
  gcc -pthread -B /home/bsilagy/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/bsilagy/anaconda3/include/python3.8 -I/tmp/pip-build-env-tq8h27ra/overlay/lib/python3.8/site-packages/numpy/core/include -I. -I/tmp/pip-install-ax10ddh9/rsnapsim-ssa-cpp -I/home/bsilagy/anaconda3/include -I/home/bsilagy/anaconda3/include/python3.8 -c ssa_translation_c_w_full.cpp -o build/temp.linux-x86_64-3.8/ssa_translation_c_w_full.o -I. -I./Include -I/home/bsilagy/anaconda3/include
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  In file included from /usr/include/c++/5/random:35:0,
                   from ssa_translation_c_w_full.cpp:7:
  /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support \
    ^
  ssa_translation_c_w_full.cpp: In function ‘void translationSSA_full(int*, double*, double*, int, double, double, int*, int, int, int, double, int, double*, int*, int, int, int*, int, int*, double*, int*, int, int*, int, int*, int, int*, double, double, double*, int*, int*, int)’:
  ssa_translation_c_w_full.cpp:69:2: error: ‘mt19937_64’ is not a member of ‘std’
    std::mt19937_64 rng;
    ^
  ssa_translation_c_w_full.cpp:74:5: error: ‘rng’ was not declared in this scope
       rng.seed(seed);
       ^
  ssa_translation_c_w_full.cpp:75:2: error: ‘uniform_real_distribution’ is not a member of ‘std’
    std::uniform_real_distribution<double> unif(0, 1);
    ^
  ssa_translation_c_w_full.cpp:75:33: error: expected primary-expression before ‘double’
    std::uniform_real_distribution<double> unif(0, 1);
                                   ^
  ssa_translation_c_w_full.cpp:138:16: error: ‘unif’ was not declared in this scope
     r1 = unif(rng);
                  ^
  ssa_translation_c_w_full.cpp:141:8: warning: unused variable ‘burst’ [-Wunused-variable]
      int burst = 1;
          ^
  ssa_translation_c_w_full.cpp:139:7: warning: unused variable ‘burst’ [-Wunused-variable]
     int burst = 0; // is the system bursting on or off_type with proprotion to kon / koff
         ^
  ssa_translation_c_w_full.cpp:218:19: error: ‘unif’ was not declared in this scope
        r1 = unif(rng);
                     ^
  ssa_translation_c_w_full.cpp:295:23: error: ‘unif’ was not declared in this scope
           r1 =  unif(rng);
                         ^
  ssa_translation_c_w_full.cpp:127:9: warning: unused variable ‘NR’ [-Wunused-variable]
       int NR = 0;
           ^
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for rsnapsim-ssa-cpp
Failed to build rsnapsim-ssa-cpp
ERROR: Could not build wheels for rsnapsim-ssa-cpp which use PEP 517 and cannot be installed directly

有人可以帮忙/建议吗?

4

0 回答 0