我正在尝试安装 xlutils 包以在 Python 中访问 xls 表,但不幸的是我无法安装它。
Python 版本 3.5.1
使用 spyder 编辑器,出现此错误。
runfile('E:/python_practice/task2/gen1.py', wdir='E:/python_practice/task2')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile
execfile(filename, namespace)
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 88, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "E:/python_practice/task2/gen1.py", line 10, in <module>
from xlutils.copy import copy
ImportError: No module named 'xlutils'
所以,从https://pypi.python.org/pypi/xlutils下载 xlutils并解压缩,复制并粘贴到 python35 文件夹的 sitepackages 文件夹以及 anaconda3 文件夹中。但我仍然遇到上述错误。