计算化学公社

标题: 安装gimic解压后执行setup --omp出现下面这个错误,该怎么办? [打印本页]

作者
Author:
lich502    时间: 2024-2-7 13:59
标题: 安装gimic解压后执行setup --omp出现下面这个错误,该怎么办?
老师们好,我按照考察分子磁感生电流的程序GIMIC 2.0的使用》帖子里面的操作安装gimic,执行setup --omp后出现这个错误?请问这是什么原因?该怎么修改?

cmake -DCMAKE_Fortran_COMPILER=gfortran -DEXTRA_FCFLAGS="''" -DCMAKE_C_COMPILER=gcc -DEXTRA_CFLAGS="''" -DCMAKE_CXX_COMPILER=g++ -DEXTRA_CXXFLAGS="''" -DENABLE_OPENMP=True -DENABLE_MPI=False -DENABLE_CODE_COVERAGE=False -DENABLE_BLAS=False -DENABLE_LAPACK=False -DCMAKE_BUILD_TYPE=release -G"Unix Makefiles" -H/home/sob/gimic -B/home/sob/gimic/build

-- The Fortran compiler identification is GNU
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /root/.conda/envs/myconda/bin/python (found version "2.6.9")
-- Configuring incomplete, errors occurred!
See also "/home/sob/gimic/build/CMakeFiles/CMakeOutput.log".

CMake Error at cmake/custom/FindNumPy.cmake:61 (message):
  NumPy import failure:

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

  ImportError: No module named numpy

Call Stack (most recent call first):
  cmake/custom/python-discovery.cmake:2 (find_package)
  CMakeLists.txt:91 (include)





作者
Author:
Aletyx    时间: 2024-2-7 15:20
“ ImportError: No module named numpy”,表示没有找到numpy模块。可以pip install numpy
作者
Author:
lich502    时间: 2024-2-7 18:26
Aletyx 发表于 2024-2-7 15:20
“ ImportError: No module named numpy”,表示没有找到numpy模块。可以pip install numpy

@Aletyx 出现了下面的情况,看不懂。
(myconda) [root@localhost ~]# pip install numpy
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/ ... ureplatformwarning.
  InsecurePlatformWarning
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SecurityWarning
Collecting numpy
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/ ... ureplatformwarning.
  InsecurePlatformWarning
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SecurityWarning
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/ ... ureplatformwarning.
  InsecurePlatformWarning
/root/.conda/envs/myconda/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SecurityWarning
  Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy





欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3