重装opencv-contrib-python 即可
一系列换源操作
pip install Pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd ana\envs\p36\Scripts
ipykernel
python -m ipykernel install --user --name tf2(一定要跟你的虚拟环境名一致)
pip install 模块包名字 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 永久
conda config --remove-key channels
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
这篇博客详细介绍了如何重新安装opencv-contrib-python,并提供了多步骤的Python环境配置指南,包括更换pip源、conda渠道设置,以及pip和conda的全局配置更新。此外,还涉及到ipykernel的安装和虚拟环境的匹配。内容对于需要优化Python和conda环境的开发者具有实用价值。
1157

被折叠的 条评论
为什么被折叠?



