温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

python出现的各种问题

发布时间:2020-07-02 00:51:42 来源:网络 阅读:2257 作者:o凤舞九天o 栏目:编程语言
  1. 使用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出现的各种问题

     解决办法:

             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

        python出现的各种问题

    解决方法:

          (1) python库地址:http://www.lfd.uci.edu/~gohlke/pythonlibs 

          (2)选择适合自己的,一定要是wordcloud开头的python出现的各种问题,win32代表32位,amd64代表64位,cp37,37代表python版本

         (3)执行pip install C:\Users\Administrator\Desktop\wordcloud-1.5.0-cp36-cp36m-win_amd64.whl

         成功截图:

            python出现的各种问题

        当使用这个方法还是没有效果时:

              采用安装硬件的方式,下载文件(visualcppbuildtools full.exe):https://pan.baidu.com/s/1UlwrZzccehYw1B8ektt4fA   --永久可用

          

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI