小编Yan*_*ang的帖子

如何修复“/bin/sh: bc: 找不到命令”

当我通过 Jupyter Notebook 运行脚本时,!make出现以下错误:

/bin/sh: bc: 未找到命令

但我的 Makefile 中没有使用“bc”函数。

我在我的 Windows 10 笔记本电脑上安装了 Python3、MinGW(包含 MSYS)、GNUWin32 和 OpenMPI。

  1. 所以我尝试自己安装“bc”。第一的: !pip install bc

安装已经进行了一段时间。之后我得到:

!公元前

已满足要求:c:\users\USERNAME\anaconda3\lib\site-packages 中的 bc (0.0.1)

  1. 我还下载了 Windows 版“bc-1.06-2.exe”(http://gnuwin32.sourceforge.net/packages/bc.htm)并安装了它。它安装在文件夹“mingw-w64/GnuWin32”下(自动),并且“bc.exe”存在于“mingw-w64/GnuWin32/bin”中。

但两次尝试都没有成功。

知道我能做些什么来解决这个问题吗?谢谢。

这里我附上了我的 Makefile:

# Please install kokkos in the following directory
# This directory has the same name as the kokkos repository,
# So please change your path to match this line so 
# all MOLTN users can have a consistent setup
KOKKOS_PATH = …
Run Code Online (Sandbox Code Playgroud)

c++ python makefile jupyter-notebook

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

c++ ×1

jupyter-notebook ×1

makefile ×1

python ×1