python中导入win32com.client出错问题
生活随笔
收集整理的這篇文章主要介紹了
python中导入win32com.client出错问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.導入模塊win32com
import win32com.client
報錯:
Traceback (most recent call last):
File “G:/Pythonxx/Damo.py”, line 3, in
import win32.client
ModuleNotFoundError: No module named ‘win32’
`
2.開始解決:
開始下載…
You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.3.需要升級pip
(venv) G:\Pythonxx>python -m pip install --upgrade pip Collecting pip開始升級
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTim eoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /pack ages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whlDownloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2dda f940/pip-18.0-py2.py3-none-any.whl (1.3MB)2% |▊ | 30kB 13kB/s eta 0:01:36又出錯:
raise ReadTimeoutError(self._pool, None, 'Read timed out.') pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.4.干脆直接用Pycharm安裝:
5.到這里安裝成功了。開始吧!
總結
以上是生活随笔為你收集整理的python中导入win32com.client出错问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VC++学习(15):多线程
- 下一篇: (原)SCOR模型在化工行业的应用