PyMySQL安装
pip install pymysql
Successfully installed pymysql-0.10.1
import pymysql没有报错
terminal中python3.7
, import pymysql
, pymysql.VERSION
。
PyMongo 安装
pip install pymongo
Successfully installed pymongo-3.11.2
terminal中python3.7
, import pymongo
, pymongo.version
redis-py 安装
pip install redis
Successfully installed redis-3.5.3
terminal中python3.7
, import redis
, redis.VERSION
RedisDump 安装
用于Redis数据导入/导出的工具,基于Ruby实现,所以需先安装Ruby。
Ruby是一种纯粹的面向对象编程语言。
brew install ruby
安装完成
Summary
🍺 /usr/local/Cellar/ruby/2.7.2: 20,156 files, 35.3MB
==> Caveats
==> ruby
By default, binaries installed by gem will be placed into:
/usr/local/lib/ruby/gems/2.7.0/bin
You may want to add this to your PATH.
ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have ruby first in your PATH run:
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/Clairezhang/.bash_profile
For compilers to find ruby you may need to set:
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
For pkg-config to find ruby you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"
按上述方法能修改PATH。