python出现的各种问题
使用pip安裝模塊時出現這樣的錯誤
?錯誤現象:
? ? ? ? ? ?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.
?
? ? ?解決辦法:
? ? ? ? ? ? ?python -m pip install? --upgrade pip
?2. 使用pip安裝模塊時出現這樣的錯誤
? ? ? ?錯誤現象:
? ? ? ? ? ? Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by? ? ? ? ?'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection. VerifiedHTTPSConnection object at 0x10b058850>, 'Connection to? ? ? ? ?pypi.python.org timed out. (connect timeout=15)')': /simple/scrapy/
? ? ? ?解決辦法:
? ? ? ? ? ?pip install Django -i http://pypi.douban.com/simple
? ? ? ?常用pip源:
? ? ? ? ? ? ??阿里云 http://mirrors.aliyun.com/pypi/simple/
? ? ? ? ? ? ? 中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
? ? ? ? ? ? ?豆瓣(douban) http://pypi.douban.com/simple/
? ? ? ? ? ? ?清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
? ? ? ? ? ? 中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/?
3.?使用pip安裝模塊時,出現這樣的錯誤
? ? 錯誤現象:
?????????error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
????????
? ? 解決方法:
? ? ? ? ? (1)?python庫地址:http://www.lfd.uci.edu/~gohlke/pythonlibs?
? ? ? ? ? (2)選擇適合自己的,一定要是wordcloud開頭的,win32代表32位,amd64代表64位,cp37,37代表python版本
? ? ? ? ?(3)執行pip install C:\Users\Administrator\Desktop\wordcloud-1.5.0-cp36-cp36m-win_amd64.whl
? ? ? ? ?成功截圖:
????????????
? ? ? ? 當使用這個方法還是沒有效果時:
? ? ? ? ? ? ? 采用安裝硬件的方式,下載文件(visualcppbuildtools full.exe):https://pan.baidu.com/s/1UlwrZzccehYw1B8ektt4fA? ?--永久可用
? ? ? ? ??
轉載于:https://blog.51cto.com/asura1992/2178932
總結
以上是生活随笔為你收集整理的python出现的各种问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: zookeeper伪集群部署
- 下一篇: Python3与OpenCV3.3 图像