如何在Ubuntu或Debian上使用ipython测试

2024-10-06 10:27:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经安装了ipython和ipython3,完全使用apt get。没有涉及康达或皮普。程序iptest未在bin目录中结束

type iptest
bash: type: iptest: not found

可以在目录中找到文件iptest.py

/usr/lib/python2.7/dist-packages/IPython/testing

/usr/lib/python3/dist-packages/IPython/testing

根据docstring,程序应该从iptest all开始。但是命令

ipython3 iptest.py all

结果显示错误消息

错误:失败:ModuleNotFoundError(没有名为“all”的模块)

如何在Ubuntu或Debian上正确使用iptest


Tags: py程序目录libpackagesusrdisttype