12
12
13
13
< body >
14
14
< header >
15
- < h1 > 个人自用常见网站</ h1 >
16
- < p > 从各大网站自己复制粘贴过来的</ p >
15
+ < h1 > Python自用常见网站</ h1 >
17
16
</ header >
18
17
< section class ="intro ">
19
18
< p > 这是我从各大网站复制粘贴过来的,包括但不限于
20
19
< a href ="https://www.python.org/ " target ="_blank "> python</ a > ,
20
+ < a href ="https://docs.anaconda.com/free/miniconda/index.html " target ="_blank "> Miniconda</ a > ,
21
21
< a href ="https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ " target ="_blank "> 清华大学镜像站</ a > ,
22
22
< a href ="https://developer.nvidia.com/cuda-toolkit-archive " target ="_blank "> Cuda</ a > ,
23
23
< a href ="https://developer.nvidia.com/rdp/cudnn-archive " target ="_blank "> Cudnn</ a > ,
24
24
< a href ="https://pytorch.org/get-started/locally/ " target ="_blank "> torch</ a > ,
25
25
< a href ="https://www.tensorflow.org/install/pip " target ="_blank "> tensorflow</ a >
26
26
</ p >
27
27
</ section >
28
+ < h2 > 快速下载</ h2 >
28
29
< section class ="links-grid ">
29
30
< div class ="grid-item ">
30
31
< a href ="https://repo.anaconda.com/miniconda/Miniconda3-py312_24.1.2-0-Windows-x86_64.exe "
@@ -42,15 +43,16 @@ <h1>个人自用常见网站</h1>
42
43
target ="_blank "> Cuda 12.1</ a >
43
44
</ div >
44
45
</ section >
45
- < div class ="conda-config-wrapper ">
46
- < section class ="conda-config ">
47
- < h3 > 配置 Pip 镜像源</ h3 >
48
- < pre class ="copyable ">
46
+ < div class ="command-detail ">
47
+ < div class ="command-detail-left ">
48
+ < section >
49
+ < h3 > 配置 Pip 镜像源</ h3 >
50
+ < pre class ="copyable ">
49
51
pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple</ pre >
50
- < h3 > 配置 Conda 镜像源</ h3 >
51
- < p > Windows用户需要手动执行</ p >
52
- < pre class ="copyable "> conda config --set show_channel_urls yes</ pre >
53
- < pre class ="copyable ">
52
+ < h3 > 配置 Conda 镜像源</ h3 >
53
+ < p > Windows用户需要手动执行</ p >
54
+ < pre class ="copyable "> conda config --set show_channel_urls yes</ pre >
55
+ < pre class ="copyable ">
54
56
channels:
55
57
- defaults
56
58
show_channel_urls: true
@@ -67,20 +69,23 @@ <h3>配置 Conda 镜像源</h3>
67
69
pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
68
70
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
69
71
deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/</ pre >
70
- < p > pytorch + cuda12.1</ p >
71
- < pre class ="copyable ">
72
+ < p > pytorch + cuda12.1</ p >
73
+ < pre class ="copyable ">
72
74
conda install pytorch=2.2.1 pytorch-cuda=12.1 torchvision torchaudio -c nvidia</ pre >
73
- < p > Tensorflow + cuda12.1</ p >
74
- < pre class ="copyable ">
75
+ < p > Tensorflow + cuda12.1</ p >
76
+ < pre class ="copyable ">
75
77
pip install tensorflow[and-cuda]
76
78
# Verify the installation:
77
79
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"</ pre >
78
80
79
- < p > Tensorflow + cpu</ p >
80
- < pre class ="copyable ">
81
+ < p > Tensorflow + cpu</ p >
82
+ < pre class ="copyable ">
81
83
# Anything above 2.10 is not supported on the GPU on Windows Native
82
84
python -m pip install "tensorflow< 2 .11 " </ pre >
83
- </ section >
85
+ </ section >
86
+ </ div >
87
+ < div class ="command-detail-right ">
88
+ </ div >
84
89
</ div >
85
90
86
91
0 commit comments