Anaconda清华源、pip豆瓣源、pip清华源

Ananconda清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ 
 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ 
 
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 --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
 
conda config --set show_channel_urls yes

pip豆瓣源

以安装numpy 3.1.0版本为例,指定版本号:

pip install numpy==3.1.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

不指定版本号:

pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip清华源

pip豆瓣源报"cannot unpack file"错时可以用下面的语句安装(安装sklearn为例)

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn sklearn
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
要使用清华源来安装TensorFlow,你可以按照以下步骤进行操作: 1. 打开命令行终端,例如Anaconda Prompt。 2. 使用以下命令将pip更改为清华源: ``` pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ``` 这将使pip使用清华源来下载和安装Python包。 3. 然后,你可以使用pip来安装TensorFlow,例如: ``` pip install tensorflow ``` 这将从清华源下载并安装最新版本的TensorFlow。 4. 如果你需要安装特定版本的TensorFlow,可以指定版本号,例如: ``` pip install tensorflow==1.2.1 ``` 这将从清华源下载并安装TensorFlow 1.2.1版本。 通过使用清华源,你可以加快TensorFlow及其他Python包的下载和安装速度。这是因为清华源提供了一个快速的镜像,使得下载过程更加高效。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [百度 AI Studio 使用指南 如何快速安装环境,pip 安装的持久化以及tensorflow和pytorch的安装](https://download.csdn.net/download/weixin_38678796/14851680)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Anaconda3安装TensorFlow2.0.0镜像并且配置好Jupyter Notebook](https://download.csdn.net/download/weixin_38730331/13751804)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [pip install tensorflow 清华_清华和豆瓣pip哪个好?](https://blog.csdn.net/weixin_39519619/article/details/110231460)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值