当我尝试在Python3中导入numpy时,出现错误。
我通过pip3安装了它,并成功安装了它。
sudo pip3 install numpy
Run Code Online (Sandbox Code Playgroud)
这是我尝试导入numpy时的错误消息:
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/numpy/__init__.py", …Run Code Online (Sandbox Code Playgroud) 在Linux上编译生锈rustc或cargo build生成共享库而不是可执行文件.
我的文件管理器(thunar)和file命令显示该文件类型为共享库.
编译后的二进制文件只能通过$ /path/to/file或通过终端执行$ cargo run.
该文件无法通过双击执行,因为其他可执行文件可以.命令
输出file:
$ file rust_bin
rust_bin:ELF 64位LSB共享对象,x86_64,版本1(SYSV),动态链接,解释器/lib64/ld-linux-x86-64.so.2,适用于GNU/Linux 3.2.0,BuildID [sha1] = cb8cd ...,with debug_info,not stripped`