![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python
python
数据库人生
专注于数据库
PostgreSQL;Oracle 11G OCA、OCP;OceanBase V2 OBCA、OBCP
展开
-
pip 升级到 21.0.1 后报错 sys.stderr.write(f“ERROR: {exc}“)
# yum install python2-pip # pip install --upgrade pip # pip version Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==21.0.1', 'console_scripts', 'pip')() File "/usr/lib/python2.7/site-package原创 2021-02-18 15:57:58 · 7822 阅读 · 4 评论 -
ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out.
ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out. # pip install --upgrade pip Collecting pip Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&原创 2021-02-18 13:23:21 · 476 阅读 · 0 评论 -
centos 安装 python3 时 yum 报错的处理
os: centos 7.x 安装python3,如下: # wget -c https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz # ./configure # make # make install 创建软链接 # ls -l /usr/bin/python lrwxrwxrwx. 1 root root 7 Apr 28 2019 /usr/bin/python -> python2 # unlink /usr/bin/p原创 2020-07-07 09:13:44 · 394 阅读 · 0 评论 -
pip、pip2、pip3
os: centos 7.4 只安装 python2.x 的情况下,pip、pip2 均对应 python2.x,安装在 /usr/lib/pyhont2.x/dist-packages 只安装 python3.x 的情况下,pip、pip3 均对应 python3.x,安装在 /usr/lib/pyhont3.x/dist-packages 同时安装 python2.x、python3.x 的情...原创 2020-05-05 09:38:19 · 784 阅读 · 0 评论 -
pip3 install dbm-agent 抛出超时错误 raise ReadTimeoutError(self._pool, None, 'Read timed out.')
os: centos 7.4 # yum install python3-pip python3 python3-devel python3-libs \ gcc gcc-c++ libffi libyaml-devel libffi-devel zlib zlib-devel openssl shadow-utils net-tools \ openssl-devel libyaml sqlit...原创 2019-12-05 18:11:04 · 711 阅读 · 0 评论 -
python 初学 读取文件
python 2.7 环境,读取一个 json字符串的文件,并解析。 创建一个json 文件 test.txt { "Id": "zh-cn", "Name": "中国", "Date": "2018-02-02 23:59:59", "ArrayList": [ { "AId&quo原创 2018-02-12 16:32:32 · 231 阅读 · 0 评论 -
python 提示 AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
os: ubuntu 16.04 python: python 2.7.12 使用 http 提示无此命令,使用 apt install -y httpie 安装后运行 http 报错如下: # http http://192.168.56.92:8008/patroni Traceback (most recent call last): File "/usr/bin/http", line...原创 2019-01-09 09:33:46 · 4639 阅读 · 1 评论