2024-05-16 04:12:35 发布
网友
我的代码是:
import texttable as tt tab = tt.TextTable() header = ['Manager', 'Club', 'Year'] tab.header(header) print tab.draw()
执行期间发生以下错误。
ImportError:没有名为texttable的模块
有谁能帮我安装texttable或其他解决方案的步骤。
您必须从python website下载模块。
解压缩存档文件,进入目录。然后使用参数中的install执行脚本setup.py:
install
setup.py
python setup.py install
您可以在the documentation中找到更多信息。
从https://pypi.python.org/packages/source/p/pip/pip-1.5.2.tar.gz下载pip
pip
将内容解压缩到任何<dir>
<dir>
cd <dir>
安装文本表调用pip install texttable
pip install texttable
您必须从python website下载模块。
解压缩存档文件,进入目录。然后使用参数中的
install
执行脚本setup.py
:您可以在the documentation中找到更多信息。
从https://pypi.python.org/packages/source/p/pip/pip-1.5.2.tar.gz下载
pip
将内容解压缩到任何
<dir>
cd <dir>
python setup.py install
安装文本表调用
pip install texttable
相关问题 更多 >
编程相关推荐