zoukankan      html  css  js  c++  java
  • Biopython Numpy 安装问题

    之前安装Biopython和Numpy的时候遇到了一些问题,这里找到了一个解决的方案。

    报错结果

    Traceback (most recent call last):
      File "/usr/share/pypy/pypy3.8/site-packages/numpy/core/__init__.py", line 22, in <module>
        from . import multiarray
      File "/usr/share/pypy/pypy3.8/site-packages/numpy/core/multiarray.py", line 12, in <module>
        from . import overrides
      File "/usr/share/pypy/pypy3.8/site-packages/numpy/core/overrides.py", line 7, in <module>
        from numpy.core._multiarray_umath import (
    ImportError: /usr/share/pypy/pypy3.8/site-packages/numpy/core/_multiarray_umath.pypy38-pp73-x86_64-linux-gnu.so: undefined symbol: _PyDict_GetItemStringWithError
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/share/pypy/pypy3.8/site-packages/numpy/__init__.py", line 145, in <module>
        from . import core
      File "/usr/share/pypy/pypy3.8/site-packages/numpy/core/__init__.py", line 48, in <module>
        raise ImportError(msg)
    ImportError: 
    
    IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
    
    Importing the numpy C-extensions failed. This error can happen for
    many reasons, often due to issues with your setup or how NumPy was
    installed.
    
    We have compiled some common reasons and troubleshooting tips at:
    
        https://numpy.org/devdocs/user/troubleshooting-importerror.html
    
    Please note and check the following:
    
      * The Python version is: Python3.8 from "/usr/bin/pypy3.8"
      * The NumPy version is: "1.20.1"
    
    and make sure that they are the versions you expect.
    Please carefully study the documentation linked above for further help.
    
    Original error was: /usr/share/pypy/pypy3.8/site-packages/numpy/core/_multiarray_umath.pypy38-pp73-x86_64-linux-gnu.so: undefined symbol: _PyDict_GetItemStringWithError
    

    解决方案

    pip  install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade numpy
    

    即可

  • 相关阅读:
    使用 connect http proxy 绕过 ssh 防火墙限制
    Docker 容器与宿主机网段冲突导致网络无法 ping 通的解决方案
    Mac 下 Chrome 浏览器 ERR_NETWORK_CHANGED 报错解决方案
    SCSS & SASS Color 颜色函数用法
    eggjs 框架代理调试 SELF_SIGNED_CERT_IN_CHAIN 报错解决方案
    【转】谷歌安装Axure浏览器插件
    js 图片转base64并压缩
    ajax请求
    postman如何重置账号的密码
    解决url中&times会被转成×的问题
  • 原文地址:https://www.cnblogs.com/zhengjm/p/14530294.html
Copyright © 2011-2022 走看看