zoukankan      html  css  js  c++  java
  • python安装途中遇到的问题和解决方法

    一、setuptools安装错误:RuntimeError: Compression requires the (missing) zlib module

    1. 描述

    搞了个腾讯云的服务器,闲在手上没事准备当个测试机用用,写写代码什么的。然后按照之前写的文章安装了python2.7,安装的中途出现了一个错误:

    其实错误一眼就能看出是缺少了zlib库,然后使用yum install zlib zlib-devel安装了库之后python setup.py install 发现还是一样报错。

    2. 解决方法

    装好zlib相关库之后把把python重新安装一遍,进入到源码目录:

    二、setuptools错误:pkg_resources.DistributionNotFound: The "distribute==0.6.10" distribution was not found and is required by the application    [2017-10-21添加]

    1. 描述

    安装完setuptools准备使用时报错:

    2. 解决方法

    缺少distribute模块,使用pip安装也装不上,需要在官网下载源码安装。

    三、pip报错:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.    [2017-10-21添加]

    1. 错误描述

    使用pip安装shadowsocks的时候报错:

    2. 解决方法

    系统缺少openssl-devel包,使用yum install openssl-devel安装。

    然后重新安装python:进入python源码目录,make && make install,解决。

  • 相关阅读:
    如何实现共享软件网络授权认证,包括注册新用户、登录、修改密码等操作
    Winform分页控件支持表头全选操作实现之最优方法
    Web开发框架之权限管理系统
    DevExpress控件开发常用要点(项目总结版)
    Winform开发框架之证件套打
    Winform开发框架之系统重新登录、自动登录实现
    我的WCF开发框架简化版及基于NET.TCP传输方式的实现
    Winform开发框架之数据曲线报表
    在GridControl控件中使用SearchLookUpEdit构建数据快速输入
    合理的布局,绚丽的样式,谈谈Winform程序的界面设计
  • 原文地址:https://www.cnblogs.com/xiaowenshu/p/10239851.html
Copyright © 2011-2022 走看看