ERROR: Cannot determine archive format of /tmp/pip-req-build-h5i7k08q

pip安装scons报错:

/opt/riscv# pip install scons https://mirrors.aliyun.com/pypi/simple
Collecting https://mirrors.aliyun.com/pypi/simple
  Downloading https://mirrors.aliyun.com/pypi/simple (14.1 MB)
     |████████████████████████████████| 14.1 MB 1.6 MB/s
  ERROR: Cannot unpack file /tmp/pip-unpack-sxglz3oh/simple.html (downloaded from /tmp/pip-req-build-h5i7k08q, content-typ                                                                                    e: text/html); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-h5i7k08q

只需改成:

pip install -i https://pypi.douban.com/simple --trusted-host pypi.douban.com scons

通过设置 --trusted-host pypi.douban.com 信任该镜像源

你可能感兴趣的:(日常bug系列)