一、进入conda虚拟环境
conda activate 虚拟环境名称
省略虚拟环境名称,默认进入base。
二、安装mitmproxy
pip install mitmproxy -i https://pypi.tuna.tsinghua.edu.cn/simple
-i 参数后面指定的是下载源仓库,这里使用的是清华大学的软件镜像站。
三、出现的问题
ERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方法:
删除ruamel*相关的文件,这里执行如下命令:
rm -rf /root/anaconda3/lib/python3.8/site-packages/ruamel*
然后重新再执行一遍安装命令即可。
全部评论