python中错误的控制台模块

2024-04-26 19:16:07 发布

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

我下载了一个导入console模块的python script。在我的系统中找不到此模块,因此我使用pip安装了它。当脚本尝试访问函数console.login_alertconsole.input_alert时,出现以下错误:'module'对象没有属性'input\u alert'

我想我使用了一个错误的console模块,但是我不知道如何安装正确的模块。我使用的是python2.7,这是关于我使用pip安装的模块的信息。你知道吗

>pip install console
Collecting console
  Downloading console-0.1.1.tar.gz
Building wheels for collected packages: console
  Running setup.py bdist_wheel for console ... done

Successfully built console
Installing collected packages: console
Successfully installed console-0.1.1

Tags: 模块pip函数脚本forinputpackages系统