python - 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
了,但这只会返回一个语法错误。
解决方案
推荐阅读
- android - 如何防止 ConcurrentModificationException
- macos - Delphi 10.3.3 macOS Notarization,错误客户端退出代码1
- python - Python 字典理解
- vb.net - 从 Form2 获取 Form1 复选框的值以构建 Exe
- python - 如何正确使用 GradientTape 在 TensorFlow 中制作自定义损失函数?
- android - 即使安装了应用,Firebase 动态链接也会重定向到 Playstore
- c - Unisys 最新的大型机系统是否仍然使用反码表示?
- c - Effective type rules with relation to strict aliasing
- javascript - how do I run code after the last element has completed its jQuery slideup effect?
- html - 如何在 ruby on rails 的 2 个字符串之间插入和变量