ImportError: module ‘pip‘ has no attribute ‘main‘
生活随笔
收集整理的這篇文章主要介紹了
ImportError: module ‘pip‘ has no attribute ‘main‘
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問題原因:在安裝tensorflow時(shí)提示pip版本有問題,于是系統(tǒng)自動(dòng)將現(xiàn)有的pip版本卸載了,可是在卸載了之后在執(zhí)行pip安裝時(shí)提示ImportError: module ‘pip’ has no attribute ‘main’
解決方案:
網(wǎng)上方法很多,像改“pycharm安裝目錄下的packaging_tool.py修改成如下內(nèi)容”之類的文章根本沒有什么用,最簡(jiǎn)單的方式就是使用pycharm自帶的包安裝功能實(shí)現(xiàn)pip包的安裝,
在pycharm “file"→"setting”
自動(dòng)安裝pip就行,試了一下最新版的沒成功,講了一個(gè)版本就行了
安裝完后窗口左下角提示:
總結(jié)
以上是生活随笔為你收集整理的ImportError: module ‘pip‘ has no attribute ‘main‘的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ERROR: Could not ins
- 下一篇: pip安装 tensorflow-gpu