1.1 打开终端激活
# 激活 anaconda 环境
source activate
# 退出 anaconda 环境
source deactivate
1.2 切换到root环境
(base) ➜ ~ conda activate root
1.3 使用pip安装
(base) ➜ ~ pip install my_fake_useragent
Looking in indexes: http://pypi.douban.com/simple
Collecting my_fake_useragent
Downloading http://pypi.doubanio.com/packages/e8/03/875aa00ed61291fdc4ebd2a1ec01e251aa6580953c4b4a75d07c671c4a1b/my_fake_useragent-0.2.0-py3-none-any.whl (66 kB)
|████████████████████████████████| 66 kB 2.1 MB/s
Installing collected packages: my-fake-useragent
Successfully installed my-fake-useragent-0.2.0