Linux下Redis安装

第一步:pip install redis

hgy@hgy-virtual-machine:~$ pip install redis
Requirement already satisfied: redis in ./.pyenv/versions/3.6.4/lib/python3.6/site-packages
(2.10.6)

 

第二步:git clone https://github.com/andymccurdy/redis-py.git

hgy@hgy-virtual-machine:~$ git clone https://github.com/andymccurdy/redis-py.git
正克隆到 'redis-py'...
remote: Counting objects: 4324, done.
remote: Total 4324 (delta 0), reused 0 (delta 0), pack-reused 4324
接收对象中: 100% (4324/4324), 1.48 MiB | 36.00 KiB/s, 完成.
处理 delta 中: 100% (2694/2694), 完成.
检查连接... 完成。

  

第三步:cd redis-py

hgy@hgy-virtual-machine:~$ cd redis-py

  

第四步:python setup.py install

hgy@hgy-virtual-machine:~/redis-py$ python setup.py installrunning install
running bdist_egg
running egg_info
creating redis.egg-info
writing redis.egg-info/PKG-INFO
writing dependency_links to redis.egg-info/dependency_links.txt
writing requirements to redis.egg-info/requires.txt
writing top-level names to redis.egg-info/top_level.txt
writing manifest file 'redis.egg-info/SOURCES.txt'
reading manifest file 'redis.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '__pycache__'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
writing manifest file 'redis.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/redis
copying redis/client.py -> build/lib/redis
copying redis/exceptions.py -> build/lib/redis
copying redis/lock.py -> build/lib/redis
copying redis/sentinel.py -> build/lib/redis
copying redis/utils.py -> build/lib/redis
copying redis/connection.py -> build/lib/redis
copying redis/__init__.py -> build/lib/redis
copying redis/_compat.py -> build/lib/redis
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/client.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/exceptions.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/lock.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/sentinel.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/utils.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/connection.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/__init__.py -> build/bdist.linux-x86_64/egg/redis
copying build/lib/redis/_compat.py -> build/bdist.linux-x86_64/egg/redis
byte-compiling build/bdist.linux-x86_64/egg/redis/client.py to client.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/exceptions.py to exceptions.cpython-

36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/lock.py to lock.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/sentinel.py to sentinel.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/utils.py to utils.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/connection.py to connection.cpython-

36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/redis/_compat.py to _compat.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying redis.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying redis.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying redis.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying redis.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying redis.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/redis-2.10.6-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing redis-2.10.6-py3.6.egg
Copying redis-2.10.6-py3.6.egg to /home/hgy/.pyenv/versions/3.6.4/lib/python3.6/site-

packages
Adding redis 2.10.6 to easy-install.pth file

Installed /home/hgy/.pyenv/versions/3.6.4/lib/python3.6/site-packages/redis-2.10.6-

py3.6.egg
Processing dependencies for redis==2.10.6
Finished processing dependencies for redis==2.10.6

  

转载于:https://www.cnblogs.com/huanggaoyu/p/10211467.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值