简体   繁体   English

如何为python3.8.1正确安装scipy?

[英]How to correctly install scipy for python3.8.1?

when I use 'pip install --user scipy',it's unable to install scipy.当我使用“pip install --user scipy”时,无法安装 scipy。 and feedback like this.和这样的反馈。

Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead.注意:这个错误有很多可能的原因,所以请不要评论关于这个的现有问题 - 而是打开一个新的。
Original error was: dlopen failed: library "libgfortran.so.5" not found原始错误是:dlopen 失败:找不到库“libgfortran.so.5”
---------------------------------------- ERROR: Command errored out with exit status 1: /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /data/data/com.termux/files/usr/tmp/tmpdhsu2ps7 Check the logs for full command output. ---------------------------------------- 错误:命令出错,退出状态为 1: /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel / data/data/com.termux/files/usr/tmp/tmpdhsu2ps7 检查日志以获取完整的命令输出。

my python vrersion我的python版本
✘  ~  python Python 3.8.1 (default, Dec 21 2019, 19:00:26) [Clang 8.0.7 ( https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf6 on linux Type "help", "copyright", "credits" or "license" for more information. ✘  ~  python Python 3.8.1(默认,2019 年 12 月 21 日,19:00:26)[Clang 8.0.7( https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf6 在 linux 上键入“help”,“版权”、“信用”或“许可”以获取更多信息。

正如错误所说:“未找到库“libgfortran.so.5””,您是否尝试安装该库?

sudo apt-get install libgfortran3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM