电脑初始环境配置

其他 · 03-22 · 450 人浏览
# install scoop (https://gitee.com/glsnames/scoop-installer)
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb scoop.201704.xyz | iex
scoop config SCOOP_REPO "https://gitee.com/glsnames/scoop-installer"
scoop install git aria2
scoop bucket add extras

# 其他软件源
scoop bucket add scoopcn https://github.com/scoopcn/scoopcn.git
scoop bucket add dorado https://github.com/chawyehsu/dorado.git
scoop bucket add scoopet https://github.com/ivaquero/scoopet.git
scoop bucket add iszy https://github.com/ZvonimirSun/scoop-iszy.git
scoop bucket add echo https://github.com/echoiron/echo-scoop.git
scoop bucket add zapps https://github.com/kkzzhizhou/scoop-zapps.git
scoop bucket add tomato https://github.com/zhoujin7/tomato.git
scoop bucket add MorFans-apt https://github.com/Paxxs/Cluttered-bucket.git
scoop bucket add sushi https://github.com/kidonng/sushi.git
scoop bucket add aki https://github.com/akirco/aki-apps.git
scoop bucket add lemon https://github.com/hoilc/scoop-lemon.git

#install python
scoop install miniconda3 vim
vim ~/.condarc

输入以下内容

channels:
  - defaults
show_channel_urls: true
ssl_verify: true
default_channels:
  - https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
  - https://mirrors.bfsu.edu.cn/anaconda/pkgs/r
  - https://mirrors.bfsu.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.bfsu.edu.cn/anaconda/cloud
  msys2: https://mirrors.bfsu.edu.cn/anaconda/cloud
  bioconda: https://mirrors.bfsu.edu.cn/anaconda/cloud
  menpo: https://mirrors.bfsu.edu.cn/anaconda/cloud
  pytorch: https://mirrors.bfsu.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.bfsu.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.bfsu.edu.cn/anaconda/cloud
conda config --set auto_activate_base false # 设置不激活默认环境
# win
mkdir %APPDATA%\pip\
vim %APPDATA%\pip\pip.ini
# linux
mkdir $HOME/.pip/
vim $HOME/.pip/pip.conf

输入以下内容

[global]
index-url = https://mirrors.bfsu.edu.cn/pypi/web/simple
format = columns
trusted-host = mirrors.bfsu.edu.cn
Theme Jasmine