pip install cryptacular卡住,卡在downloading阶段

笔者安装pip install cryptacular卡在downloading阶段,但不知道为何

复制代码
Collecting cryptacular
  Created temporary directory: /tmp/pip-unpack-qfbl8f08
  http://10.170.22.41:8082 "GET http://repo.huaweicloud.com/repository/pypi/packages/42/69/34d478310d6c4451e5ddeabe879b28cc304173e0301b3568eca88ec65112/cryptacular-1.6.2.tar.gz HTTP/1.1" 200 75764
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/42/69/34d478310d6c4451e5ddeabe879b28cc304173e0301b3568eca88ec65112/cryptacular-1.6.2.tar.gz (75 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.8/75.8 kB 689.1 kB/s eta 0:00:00
  Added cryptacular from http://repo.huaweicloud.com/repository/pypi/packages/42/69/34d478310d6c4451e5ddeabe879b28cc304173e0301b3568eca88ec65112/cryptacular-1.6.2.tar.gz#sha256=7b529cb2b8a3c7e5be77921bf1ebc653d4d3a8f791375cc6f971b20db2404176 to build tracker '/tmp/pip-build-tracker-hsj8iwcd'
  Created temporary directory: /tmp/pip-build-env-2clvkpu2
  Running command pip subprocess to install build dependencies
  Using pip 22.3.1 from /root/miniconda3/envs/UMT/lib/python3.9/site-packages/pip (python 3.9)
  Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0xffff8a064610>, 'Connection to repo.huaweicloud.com timed out. (connect timeout=15)')': /repository/pypi/simple/pytoml/

解决办法是,首先加上-vvv参数,可以展示安装过程卡在哪一步,比如笔者加上参数后,发现卡在了下载scon这一步(如下日志所示)。于是从本地PC下载whl包后,上传到机器安装。

复制代码
https://pypi.tuna.tsinghua.edu.cn:443 "GET /packages/45/92/50b739021983b131dcacd57aa8b04d31c5acc2e7e0eb4ed4a362f438c6b7/scons-4.9.1-py3-none-any.whl HTTP/1.1" 200 4131331
    Downloading https://pypi.tuna.tsinghua.edu.cn/packages/45/92/50b739021983b131dcacd57aa8b04d31c5acc2e7e0eb4ed4a362f438c6b7/scons-4.9.1-py3-none-any.whl (4.1 MB)
          ━━━━━━━━━━━━━━━━━━━━━━━━━━╸              2.8/4.1 MB 44.2 kB/s eta 0:00:32

pip install scons-4.9.1-py3-none-any.whl

之后再安装cryptacular即可

相关推荐
万粉变现经纪人1 天前
如何解决 pip install shapely 报错 GEOS C 库未找到 问题
c语言·开发语言·python·pycharm·bug·pandas·pip
大连好光景2 天前
conda管理包还是pip管理包
python·conda·pip
万粉变现经纪人2 天前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
万粉变现经纪人2 天前
如何解决 pip install pillow-simd 报错 需要 AVX2/特定编译器 支持 问题
python·scrapy·beautifulsoup·aigc·pandas·pillow·pip
YMWM_4 天前
‘pip install -e .‘ and ‘pip install .‘
pip·pip install
請你喝杯Java4 天前
Python 后端开发:从虚拟环境、pip、requirements.txt 到项目启动
开发语言·python·pip
Hello.Reader4 天前
PySpark 安装保姆级教程pip、Conda、手动安装、Spark Connect 一次讲透(一)
python·spark·conda·pip
N盒4 天前
【WhisperX+M2M100】快速视频转字幕工具
python·pip
查尔char8 天前
CentOS 7 编译安装 Python 3.10 并解决 SSL 问题
python·centos·ssl·pip·python3.11
@zulnger8 天前
数据采集的基本知识
python·pip