【Linux operation 54】Centos Stream 9 更换清华源

1、对应的清华源地址:

https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/

在这里插入图片描述

2、更换源

2.1、配置文件路径:

/etc/yum.repos.d/centos.repo

2.2、首先备份centos.repo

cp centos.repo backup_centos.repo

2.3、修改centos.repo文件,修改后的文件如下

[root@localhost yum.repos.d]# cat centos.repo 
[baseos]
name
(dep_analysis) [deployer@localhost pydoris]$ pip install pipdeptree Collecting pipdeptree Downloading https://files.pythonhosted.org/packages/e8/aa/e494d9f1027d2ef599c25ec03ec7e2e15d9e37748ebfded013fc3696d939/pipdeptree-2.2.1-py3-none-any.whl Requirement already satisfied: pip>=6.0.0 in ./dep_analysis/lib/python3.6/site-packages (from pipdeptree) Installing collected packages: pipdeptree Successfully installed pipdeptree-2.2.1 You are using pip version 9.0.3, however version 25.1.1 is available. You should consider upgrading via the &#39;pip install --upgrade pip&#39; command. (dep_analysis) [deployer@localhost pydoris]$ pip install pydoris==1.0.6 Collecting pydoris==1.0.6 Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/ad/bd/f9fdc95dc3028fd7bab86ebf62d3ef7e6a5010e25f6c4a0d155f8a633ee7/pydoris-1.0.6.tar.gz Collecting sqlalchemy<2,>=1.4 (from pydoris==1.0.6) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/5e/50/f63ff7811a8d3367a2c7fae6095f08da20e64e09762e4da1bf05706aefb1/SQLAlchemy-1.4.54-cp36-cp36m-manylinux1_x86_64.manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6MB) 26% |████████▋ | 440kB 11kB/s eta 0:01:46Exception: Traceback (most recent call last): File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 302, in _error_catcher yield File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 384, in read data = self._fp.read(amt) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 60, in read data = self.__fp.read(amt) File "/usr/lib64/python3.6/http/client.py", line 459, in read n = self.readinto(b) File "/usr/lib64/python3.6/http/client.py", line 503, in readinto n = self.fp.readinto(b) File "/usr/lib64/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) File "/usr/lib64/python3.6/ssl.py", line 1005, in recv_into return self.read(nbytes, buffer) File "/usr/lib64/python3.6/ssl.py", line 867, in read return self._sslobj.read(len, buffer) File "/usr/lib64/python3.6/ssl.py", line 590, in read v = self._sslobj.read(len, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/commands/install.py", line 346, in run requirement_set.prepare_files(finder) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/req/req_set.py", line 381, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/req/req_set.py", line 623, in _prepare_file session=self.session, hashes=hashes) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 821, in unpack_url hashes=hashes File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 659, in unpack_http_url hashes) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 603, in _download_url hashes.check_against_chunks(downloaded_chunks) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks for chunk in chunks: File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 571, in written_chunks for chunk in chunks: File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/utils/ui.py", line 139, in iter for x in it: File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/download.py", line 560, in resp_read decode_content=False): File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 436, in stream data = self.read(amt=amt, decode_content=decode_content) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 401, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib64/python3.6/contextlib.py", line 99, in __exit__ self.gen.throw(type, value, traceback) File "/home/deployer/superset-data/pydoris/dep_analysis/lib64/python3.6/site-packages/pip/_vendor/urllib3/response.py", line 307, in _error_catcher raise ReadTimeoutError(self._pool, None, &#39;Read timed out.&#39;) pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=&#39;files.pythonhosted.org&#39;, port=443): Read timed out. You are using pip version 9.0.3, however version 25.1.1 is available. You should consider upgrading via the &#39;pip install --upgrade pip&#39; command.
最新发布
07-11
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值