Python中文
首页
教程
问答
标签
搜索
登录
注册
在Python 2.7 [Windows - 64位] 上安装xlwt模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我已经安装了Win764位和Python2.6、2.7、3.3。当我下载并提取xlwt 0.7.4(<a href="https://pypi.python.org/pypi/xlwt" rel="nofollow">https://pypi.python.org/pypi/xlwt</a>)时,自述文件要求: <em>.zip文件到一个合适的目录,chdir到那个目录,然后执行“python setup.py install”。</em></p> <p>chdir有必要吗?你怎么做到的?当我运行setup.py时,黑色的命令提示符出现,什么也没有发生。不管怎样,我仍然得到importTerror:在导入尝试中没有名为'xlwt'的模块。</p> <p>有谁能写一个快速的nooby一步一步指南来安装这个有用的模块(Windows 7-8位)?提前谢谢你的帮助。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<ol> <li>下载xlwt文件夹并将其解压缩到任何目录中</li> <li>打开Python/PyScripter</li> <li>添加以下3行: 导入操作系统 os.chdir(“your/xlwt/directory”)ex.os.chdir(“C:/Python27/xlwt-0.7.4”),确保使用/,而不是\ 导入xlwt现在应该可以工作了!</li> </ol>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
在python3中使用Scipy pearsonr函数
2 回答
在Python3中使用scipy对多个lorentzian进行数据拟合
1 回答
在Python3中使用Script=argv
7 回答
在python3中使用selenium webdriver进行未解析的回溯
8 回答
在python3中使用selenium和phantomjs的网页截图之前如何等待?
7 回答
在Python3中使用Selenium和Requests模块从网页获取文件
7 回答
在python3中使用SIGINT终止函数
7 回答
在Python3中使用SIGTERM时,允许进程完成而不是中断
7 回答
在python3中使用smtplib发送XML内容
10 回答
在python3中使用socket库(RFCOMM模式)重新连接蓝牙设备?
9 回答
在python3中使用sounddevice和numpy编写wav文件
10 回答
在python3中使用Sqlalchemy插入MySQL查找类型错误的原因
10 回答
在python3中使用sqlite、pandas和sqlalchemy很难让rollback工作
6 回答
在python3中使用SQLite的FTS3/4
10 回答
在Python3中使用struct.calcsize()和len()有区别吗?
8 回答
在python3中使用substring函数时发生TypeError
2 回答
在Python3中使用Tkinter entry小部件写入串行设备
7 回答
在python3中使用tkinter时,如何在每次按下函数时获得运行该函数的按钮?
2 回答
在python3中使用tkinter的子帧
10 回答
在Python3中使用tryexcept块时,如何避免使用未初始化的变量?
1 回答