黑松山资源网 Design By www.paidiu.com

Manjaro

切换镜像源。执行以下命令,在稍后的弹窗中选择延迟最低的即可。

sudo pacman-mirrors -i -c China -m rank

设置archlinuxcn源。在/etc/pacman.conf中添加以下命令,中科大源和清华源添加其中一个就可以了:

[archlinuxcn]
SigLevel = Optional TrustedOnly
#中科大源
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
#清华源
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

更新源列表:

sudo pacman-mirrors -g

更新pacman数据库并更新系统:

sudo pacman -Syyu

更新系统签名:

sudo pacman -S archlinuxcn-keyring
sudo pacman -S antergos-keyring

pip

如果只是想临时从指定源下载某个文件,可以在下载命令后加入-i url来指定下载源,其中url是镜像源的地址。例如:

pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久更换。以添加阿里云的源为例:

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

其中的https://mirrors.aliyun.com/pypi/simple/可以换成其他的镜像源地址。一些常见的源地址如下:

阿里云 https://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

恢复到默认的源。步骤2的命令执行后,配置在~/.pip/pip.conf中。想要换回默认源,只要把文件中相应的部分删掉旧可以了。(实在不行就把文件也删除)

conda

以添加中科大源和清华源为例,以下两个添加一个即可:

中科大源。在终端中执行以下命令:

#USTC仓库镜像
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
#Conda 附加库
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
#使之生效
conda config --set show_channel_urls yes

清华源:

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

换回默认源:

conda config --remove-key channels
黑松山资源网 Design By www.paidiu.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
黑松山资源网 Design By www.paidiu.com

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。