You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

pip安装audioread遇Exit status 1错误求助(SSL验证失败)

Fixing SSL Certificate Error When Installing audioread on Python 3.6

Hey there, I’ve run into similar SSL certificate headaches with older Python versions before, so let’s work through this together. The core issue here is that your pip can’t verify SSL certificates for PyPI hosts when pulling dependencies like pytest-runner. Here are actionable steps to fix this:

Step 1: Double-Check Trusted Host Parameters

You mentioned using --trusted-host, but older pip versions (common with Python 3.6) often need all relevant PyPI domains specified. Try running this full command:

pip install audioread --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org

Adding pypi.python.org fills a gap that’s easy to miss with legacy pip setups.

Step 2: Permanently Configure Pip’s Trusted Hosts

If the temporary command doesn’t stick, set up a pip config file to avoid retyping parameters every time:

  • Linux/macOS: Create or edit ~/.pip/pip.conf with these lines:
    [global]
    trusted-host = pypi.org
                   files.pythonhosted.org
                   pypi.python.org
    
  • Windows: Create or edit %APPDATA%\pip\pip.ini with the same content as above.

Save the file, then run pip install audioread again—it should now trust all required hosts automatically.

Step 3: Manually Install Dependencies First

Since the failure happens while downloading pytest-runner, install that dependency locally first before tackling audioread:

  1. Grab a Python 3.6-compatible version of pytest-runner (like pytest-runner-5.3.2.tar.gz) from PyPI.
  2. Install it locally with:
    pip install /path/to/pytest-runner-5.3.2.tar.gz
    
  3. Now install your local audioread package:
    pip install /path/to/audioread-2.1.8.tar.gz
    

Step 4: Update Your Python SSL Certificates

Python 3.6 uses an outdated bundled certificate store, which might not recognize modern PyPI certificates. Here’s how to refresh it:

  1. First install the certifi library (which maintains updated root certificates):
    pip install certifi --trusted-host pypi.org --trusted-host files.pythonhosted.org
    
  2. Point your system to use this updated bundle:
    • Linux/macOS: Run this in your terminal before installing audioread:
      export SSL_CERT_FILE=$(python -m certifi)
      
    • Windows: Find the certifi path (usually C:\Python36\Lib\site-packages\certifi\cacert.pem) and set the environment variable:
      set SSL_CERT_FILE=C:\Python36\Lib\site-packages\certifi\cacert.pem
      
  3. Retry the audioread installation.

Step 5: Ensure Pip is Up-to-Date for Python 3.6

Even if you updated pip, make sure you’re using the latest version compatible with Python 3.6 (since 3.6 is end-of-life, pip 20.3.x is the last supported branch):

pip install --upgrade pip==20.3.4 --trusted-host pypi.org --trusted-host files.pythonhosted.org

After upgrading, try installing audioread again.

Start with Step 1—it’s the quickest fix. If that doesn’t work, move down the list. Let me know if any step hits a snag!

内容的提问来源于stack exchange,提问作者JareBear

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 16:02:38