清華 鏡像 conda config --add channels https://mirrors.tuna./anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna./anaconda/pkgs/main/ conda config --set show_channel_urls yes 設(shè)置pip的默認(rèn)為清華鏡像 pip install -i https://pypi.tuna./simple pip -U pip config set global.index-url https://pypi.tuna./simple 中科院 鏡像 conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes 查看已有鏡像 conda config --show 刪除鏡像 conda config --remove channels https://mirrors.tuna./tensorflow/linux/cpu/ 添加鏡像 conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 恢復(fù)至默認(rèn)鏡像 conda config --remove-key channels 設(shè)置搜所時顯示地址 conda config --set show_channel_urls yes 更新pip conda install pip 更新安裝新版本pip python -m pip install --upgrade pip 查詢各個安裝包的版本信息 conda list 清華鏡像下安裝pytorch conda config --add channels https://mirrors.tuna./anaconda/cloud/pytorch/ conda install pytorch torchvision cudatoolkit=9.0 (版本號從https://pytorch.org/上,查找對應(yīng)版本) conda install pytorch torchvision cpuonly -c pytorch conda install pytorch-cpu torchvision-cpu 安裝pygame pip install pygame 清華源安裝pygeme pip install -i https://pypi.tuna./simple pygame python直接安裝opencv pip install opencv-python 安裝python進度條 pip install tqdm 安裝utils庫 pip install utils
|