首页 > 解决方案 > Cloud Jupter 笔记本 Numpy .so 文件“无法从共享对象映射段”

问题描述

我正在使用基于网络的 Jupyter Notebook。

我一直收到这个导入错误,所以我检查了提供的链接,决定重新安装 Numpy。

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

  * The Python version is: Python3.7 from "/usr/bin/python3"
  * The NumPy version is: "1.20.3"

Original error was: /home/jupyter/.local/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-x86_64-linux-gnu.so: failed to map segment from shared object

所以我使用pip uninstall numpy然后y在被问到时继续。

这通常需要多长时间?到目前为止,它已经运行了至少两个小时。应该要花这么长时间吗?

有没有替代解决方案?

我试过sudo apt-get install libatlas-base-dev了,但这只会返回一个语法错误。

标签: pythonnumpyjupyter-notebook

解决方案


推荐阅读