conda pip install 开关清除 pip 源代码
最编程
2024-03-12 09:09:36
...
- 先将 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
- 然后安装 pip 并配置为清华镜像源:
conda install pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- 最后尝试安装您需要的软件包,例如:
pip install numpy
如果仍然出现问题,建议检查您的网络设置和防火墙,或者尝试更换其他的镜像源。