美文网首页
Linux下安装python后遇到的一些错误提示

Linux下安装python后遇到的一些错误提示

作者: 不可不 | 来源:发表于2018-08-11 22:46 被阅读0次

    缺少openssl相关模块

    pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    

    解决方法

    • Fedora
    sudo dnf install openssl openssl-devel
    
    • Ubuntu
    sudo apt install openssl libssl-dev
    

    pip or setuptools未安装最新版本

    The directory '/home/amosniu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    
    

    解决方法:

    pip install --user --upgrade pip 
    pip install --user --upgrade setuptools
    

    相关文章

      网友评论

          本文标题:Linux下安装python后遇到的一些错误提示

          本文链接:https://www.haomeiwen.com/subject/yjjjbftx.html