pip install 提示"no previously-included directories found matching"及"no previously-included files matching found anywhere in distribution",且偶发无法关联安装 PyPI 库的故障
摘要:环境描述: Python 2.7.5 CentOS-7.2 报错现象: Python 2.7.5 CentOS-7.2 (1).在虚拟环境下运行 pip install 命令安装 PyPI 第三方库,出现类似如下告警。 Running setup.py egg_info for package We
阅读全文
posted @
2018-02-22 09:02
autopenguin
阅读(4290)
推荐(0)
Flask+gevent 异步 WEB 架构
摘要:异步 WEB 架构的特点: gevent 为 Python 提供了比较完善的协程支持,其基于 greenlet 实现协程。 当 greenlet 遇到如网络访问、磁盘 IO 等操作时,就将自动切换至其他的 greenlet,待操作完成后,在适合的时间点回切 greenlet 继续执行。由于网络访问、
阅读全文
posted @
2017-03-03 16:11
autopenguin
阅读(1287)
推荐(0)
基于 Paramiko 的 SSH 通讯类
摘要:# -*- coding: UTF-8 -*-import paramikoimport time##################################################################'''类名称: SSHCommunication描述:SSH通讯类作者
阅读全文
posted @
2016-12-05 10:45
autopenguin
阅读(856)
推荐(0)
Windows 环境下于虚拟环境中源码安装 cx_oracle
摘要:安装前提条件: (1).安装 instantclient-basic-nt (2).安装 instantclient-sdk-nt (3).安装 Microsoft Visual C++ Compiler for Python(用于编译源码) 安装步骤: 1.激活虚拟环境 在 Windows 上,执
阅读全文
posted @
2016-11-30 15:11
autopenguin
阅读(452)
推荐(1)
Windows 环境下基于 Redis 的 Celery 任务调度模块的实现
摘要:搭建环境: Windows-x64 10 Celery 3.1.23 Celery-with-redis 3.0 Celery 3.1.23 Celery-with-redis 3.0 Redis-win32-win64 2.4.5 实现步骤: 1.安装 Redis 由于 Redis 并没有官方支持
阅读全文
posted @
2016-10-13 14:49
autopenguin
阅读(1351)
推荐(0)
Windows 环境下基于 nginx 的本地 PyPI 源
摘要:Windows 环境下基于 nginx 的本地 PyPI 源的搭建: 1.登录 nginx 官网,下载安装包 下载稳定版,并解压缩。 2.启动 nginx 服务 以管理员身份启动 nginx.exe。 访问 localhost,出现如下页面即证明 nginx 安装并启动成功。 3.安装 pip2pi
阅读全文
posted @
2016-10-02 21:36
autopenguin
阅读(1179)
推荐(1)