我使用 python 3.5,需要安装python-docx
包
正如文档所述,我使用命令:pip install python-docx
,它表示安装已成功完成
不过,当我尝试时import docx
它说:ImportError: No module named 'docx'
我犯了什么错误?
which pip
显示:/home/oto/.local/bin/pip
which python
显示:/usr/bin/python
ls -la /usr/bin/python; python --version; pip --version
显示:
lrwxrwxrwx 1 root root 9 ნოე 24 2017 /usr/bin/python -> python2.7
Python 2.7.12
pip 20.0.2 from /home/oto/.local/lib/python2.7/site-packages/pip (python 2.7)