1.切换到指定anaconda环境:
conda activate tensorflow2
(可能会出现Your shell has not been properly configured to use 'conda activate'.
这时使用 conda deactivate 退出虚拟环境,然后重新进入即可)
若出现
1 首先终端输入 conda activate
2 然后终端输入 conda deactivate
如图所示,表示成功
2.安装指定包,这里以redis为例
pip install redis==2.10.6
pip install redis-py-cluster==1.3.5