使用 TreeSize 觀察 disk 空間花在哪些地方,發現舊版的 pytorch packages 佔據不少空間: 使用 conda clean -p 清理沒有被使用的 packages: (base) PS C:\Users\murph> conda clean -p WARNING: C:\Users\murph\.conda\pkgs does not exist WARNING: C:\Users\murph\AppData\Local\conda\conda\pkgs does not exist Cache location: C:\Develop\anaconda3\pkgs Will remove the following packages: C:\Develop\anaconda3\pkgs ------------------------- anaconda-2020.11-py38_0 78 KB blas-1.0-mkl 16 KB conda-env-2.6.0-1 7 KB cudatoolkit-11.0.221-h74a9793_0 1.54 GB dask-2.30.0-py_0 12 KB get_terminal_size-1.0.0-h38e98db_0 8 KB importlib_metadata-2.0.0-1 37 KB libuv-1.40.0-he774522_0 1.1 MB matplotlib-3.3.2-0 85 KB msys2-conda-epoch-20160418-1 6 KB numpy-1.19.2-py38hadc3359_0 69 KB path.py-12.5.0-0 8 KB prompt_toolkit-3.0.8-0 38 KB pytorch-1.7.0-py3.8_cuda102_cudnn7_0 2.08 GB pytorch-1.7.0-py3.8_cuda110_cudnn8_0 2.66 GB pytorch-1.7.1-py3.8_cuda110_cudnn8_0 2.67 GB torchaudio-0.7.0-py38 4.0 MB torchaudio-0.7.2-py38 4.0 MB torchvision-0.8.0-py38_cu102 12.0 MB torchvision-0.8.0-py38_cu110 12.5 MB torchvision-0.8.2-py38_cu110 12.5 MB typing_extensions-3.7.4.3-pyha847dfd_0 123 KB vc-14.1-h0510ff6_4 17 KB vc-14.2-h21ff451_1 23 KB --------------------------------------------------- Total: 9.00 GB Proceed ([y]/n)? y removing anaconda-2020.11-py38_0 removing blas-1.0-mkl removing conda-env-2.6.0-1 removing cudatoolkit-11.0.221-h74a9793_0 removing dask-2.30.0-py_0 removing get_terminal_size-1.0.0-h38e98db_0 removing importlib_metadata-2.0.0-1 removing libuv-1.40.0-he774522_0 removing matplotlib-3.3.2-0 removing msys2-conda-epoch-20160418-1 removing numpy-1.19.2-py38hadc3359_0 removing path.py-12.5.0-0 removing prompt_toolkit-3.0.8-0 removing pytorch-1.7.0-py3.8_cuda102_cudnn7_0 removing pytorch-1.7.0-py3.8_cuda110_cudnn8_0 removing pytorch-1.7.1-py3.8_cuda110_cudnn8_0 removing torchaudio-0.7.0-py38 removing torchaudio-0.7.2-py38 removing torchvision-0.8.0-py38_cu102 removing torchvision-0.8.0-py38_cu110 removing torchvision-0.8.2-py38_cu110 removing typing_extensions-3.7.4.3-pyha847dfd_0 removing vc-14.1-h0510ff6_4 removing vc-14.2-h21ff451_1 使用 TreeSize 觀察清理後的結果: