欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

conda pip install 开关清除 pip 源代码

最编程 2024-03-12 09:09:36
...
  1. 先将 conda 配置为清华镜像源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
  1. 然后安装 pip 并配置为清华镜像源:
conda install pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  1. 最后尝试安装您需要的软件包,例如:
pip install numpy

如果仍然出现问题,建议检查您的网络设置和防火墙,或者尝试更换其他的镜像源。