👨💻 ___March___:个人空间
🚓个人专栏:《车辆算法研究》
文章目录
一、下载Anaconda
Anaconda的下载地址为:Latest Miniconda installer links by Python version — miniconda documentation
基于python 3.9确定下载文件
windows用户下载python 3.9的Miniconda,如图1-1所示。
![45b9a003433a4146a4b8188b0bb2df6d.png](https://i-blog.csdnimg.cn/blog_migrate/2373627092163facfaea9bce45f6a4b1.png)
图1-1 python 3.9的Miniconda
安装Miniconda
打开下载的Miniconda3 py39 23.5.2-0(64-bit) Setup文件;
![db563bc62bfc4070b048e2aa52428b63.png](https://i-blog.csdnimg.cn/blog_migrate/d490a9de054daa380102cfa9c2440bca.png)
图1-2 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面001
如图1-2所示,选择Next;
![ce71e9fdae014bad89f74d0d46602743.png](https://i-blog.csdnimg.cn/blog_migrate/20b4ebf41f7c03cf8c84521db5425810.png)
图1-3 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面002
如图1-3所示,选择I Agree;
![d1727ecdc3514b6582cda0b66fa901bb.png](https://i-blog.csdnimg.cn/blog_migrate/ae4ea5a8aac8d6588f674f2f5c1daec7.png)
图1-4 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面003
如图1-4所示,确认选择了Just Me(recommended)之后点击Next;
![01b94ccba04746e5b1719efc0ed062e3.png](https://i-blog.csdnimg.cn/blog_migrate/c4617dee34be3e14a332ab995c80811c.png)
图1-5 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面004
如图1-5所示,确认安装地址后点击Next;
![496b368a8fc74b31a695b60db8d6ca70.png](https://i-blog.csdnimg.cn/blog_migrate/79048ee0ce645f9647600110b135484b.png)
图1-6 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面005
如图1-6所示,确认上述3个选择后点击Install
![1b61019722834e458546c0aa5f441445.png](https://i-blog.csdnimg.cn/blog_migrate/74c5f6f3bef682820be8aed2c71be6df.png)
图1-7 Miniconda3 py39 23.5.2-0(64-bit) Setup安装界面006
如图1-7所示,等待安装完之后点击Next。
Miniconda安装检测
打开电脑运行程序(Win+R),输入cmd打开Windows命令处理程序,在其中输入:
conda --version
等待片刻系统会 显示出安装的版本信息,如:
conda 23.5.2
继续在Windows命令处理程序中输入:
conda env list
等待片刻系统会 显示出安装的位置信息,如:
# conda environments:
#
base C:\Users\*****\miniconda3
如果显示上述,则安装成功!!
二、配置虚拟环境
安装结束之后输入下列指令激活虚拟环境;
conda create -n tf2.3 python==3.9
之后等待片刻,会显示一下字符;
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json,
retrying with next repodata source.Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.5.2
latest version: 23.7.3
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=23.7.3
## Package Plan ##
environment location: C:\Users\March\miniconda3\envs\tf2.3
added / updated specs:
- python==3.9
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2023.08.22 | haa95532_0 123 KB
openssl-1.1.1v | h2bbff1b_0 5.5 MB
pip-23.2.1 | py39haa95532_0 2.8 MB
python-3.9.0 | h6244533_2 16.4 MB
setuptools-68.0.0 | py39haa95532_0 925 KB
------------------------------------------------------------
Total: 25.7 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2023.08.22-haa95532_0
openssl pkgs/main/win-64::openssl-1.1.1v-h2bbff1b_0
pip pkgs/main/win-64::pip-23.2.1-py39haa95532_0
python pkgs/main/win-64::python-3.9.0-h6244533_2
setuptools pkgs/main/win-64::setuptools-68.0.0-py39haa95532_0
sqlite pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0
tzdata pkgs/main/noarch::tzdata-2023c-h04d1e81_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/win-64::wheel-0.38.4-py39haa95532_0
Proceed ([y]/n)?
输入Y,系统便会安装。
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate tf2.3
#
# To deactivate an active environment, use
#
# $ conda deactivate