AttributeError: module 'pip' has no attribute 'main报错 找到安装目录下 helpers/packaging_tool.py文件,找到如下代码: def do_install(pkgs): try: import pip except ImportError: error_no_pip() return pip.main(['install'] + pkgs) def do_uninstall(pkgs): try: import pip exc…
1.mac下python环境pip报错: issuserdeMacBook-Pro:~ issuser$ pip install pyinstallerCollecting pyinstaller  Could not fetch URL https://pypi.python.org/simple/pyinstaller/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSIO…
环境信息: python版本:V3.6.4 安装路径:D:\Program Files\python36 环境变量PATH:D:\Program Files\Python36;D:\Program Files\Python36\Scripts; 问题描述:命令行执行pip报错 解决方法: 1.切换到D:\Program Files\Python36\Scripts 2.执行python pip.exe install SomePackage进行安装 3.安装成功后执行pip仍报错 4.查看安装成…
参考链接[侵权删] https://www.jianshu.com/p/3378fa827924 https://yq.aliyun.com/articles/619208 问题描述:在Windows-命令行和pycharm中,用pip命令安装pillow时出现都以下超时错误提示: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443…
CMD终端关于pip报错,scrapy报错的一种处理方法 如果在终端输入pip,或scrapy,报如下错误: Fatal error in launcher: Unable to create process using '"' 这通常是因为你的电脑装了两个版本的python(python2.x和python3.x所致). 通常你只要在CMD终端输入的命令前加上 python -m 就能解决这个问题,根本不需要修改什么: 用pip: python -m pip install scrapy 用s…
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.   上官瑾文 2018-07-26 14:57:34 浏览45376 python docker shell 镜像 Image pip read dockerfile ReadTimeoutError   场景 在用Dockerfile制作镜像的…
最近在开发微信公众号,有一个自定义消息回复的需求 比如用户:麻烦帮我查询一下北京的天气? 系统回复:北京天气,晴,-℃... 这时候需要根据关键字[北京][天气],分词匹配需要执行的操作,然后去调用天气接口,请求天气数据. 不同的提问可能需要查询不同的接口数据,这个时候想把每个接口调用做成一个Python脚本插件,在程序运行过程中动态去请求不同接口,扩展性强. def get_baidu_html(): import urllib2 import sys url = 'http://1212.i…
python安装tensorflow报错:python No matching distribution found for tensorflow==1.12.0 python版本是3.7.2 要安装的tensorflow版本是1.12.0 pip版本是18.1 安装操作是在pycharm上进行操作的. 但是一安装就报错:python No matching distribution found for tensorflow==1.12.0 解决办法: 将python进行退版本,也就是卸载当前这…
python 安装模块报错 Exception:Traceback (most recent call last): File "/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 302, in _error_catcher yield File "/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any…