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

Ubuntu14.04下conda安装python3.6遇依赖冲突排查求助

Troubleshooting Conda Python 3.6 Installation Conflict on Ubuntu 14.04

Let’s walk through how to fix this dependency conflict between python=3.6 and ssl_match_hostname (which is requiring Python 2.7) step by step:

  • First, verify your current environment and package state
    Run these commands to get a clearer picture of what’s installed:

    • conda info to check your active environment and conda version (old conda versions often struggle with dependency solving)
    • conda list ssl_match_hostname to confirm if this package is already present in your environment, and which version it is
    • If conda info ssl_match_hostname returns nothing, try conda search --info ssl_match_hostname instead—this will pull details about available versions across your configured channels, including their Python compatibility.
  • Update conda first (critical for old systems like Ubuntu 14.04)
    Outdated conda versions are a common cause of unsolvable environment conflicts. Run this to update the base conda installation:

    conda update -n base conda
    

    Once updated, retry your original command: conda install python=3.6

  • Try installing from the conda-forge channel
    The default conda channels might have an older version of ssl_match_hostname that only supports Python 2.7. Conda-forge typically maintains more up-to-date packages with broader Python compatibility. Run:

    conda install -c conda-forge python=3.6
    
  • Remove conflicting packages manually (if safe)
    If ssl_match_hostname is installed and isn’t a critical dependency for your current environment, you can remove it first before installing Python 3.6:

    conda remove ssl_match_hostname
    conda install python=3.6
    

    After installing Python 3.6, you can reinstall a compatible version of ssl_match_hostname from conda-forge if needed:

    conda install -c conda-forge ssl_match_hostname
    
  • Consider creating a fresh environment instead
    If modifying your existing environment is too messy, create a dedicated Python 3.6 environment:

    conda create -n py36_env python=3.6
    

    If you need this environment’s Python binary to live at ~/anaconda3/bin/python3.6, you can create a symlink from the environment’s Python to that path (just make sure to back up the original file first if it exists):

    ln -s ~/anaconda3/envs/py36_env/bin/python3.6 ~/anaconda3/bin/python3.6
    
  • Check for system-level package interference
    Ubuntu 14.04 has older system libraries, so ensure you haven’t mixed conda packages with system-installed Python packages. Avoid using sudo with conda commands, as this can cause conflicts with system-level files.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.15 07:24:26