具体情况如下:
Microsoft Windows [版本 10.0.18363.1440]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\29328>conda --version
conda 4.9.2
C:\Users\29328>conda info --envs
# conda environments:
#
base * F:\behash\Anacondaas\install_001
C:\Users\29328>conda search --full -name python
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: -name
C:\Users\29328>conda search --full python 3.7
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: 3.7
C:\Users\29328>conda search --full -name python 3.9
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: -name 3.9
C:\Users\29328>activate tensorflow1
Could not find conda environment: tensorflow1
You can list all discoverable environments with `conda info --envs`.
C:\Users\29328>conda create --name tensorflow1 python=3.9
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.9.2
latest version: 4.10.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: F:\behash\Anacondaas\install_001\envs\tensorflow1
added / updated specs:
- python=3.9
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2021.4.13 | haa95532_1 115 KB
certifi-2020.12.5 | py39haa95532_0 141 KB
openssl-1.1.1k | h2bbff1b_0 4.8 MB
pip-21.0.1 | py39haa95532_0 1.8 MB
python-3.9.4 | h6244533_0 16.4 MB
setuptools-52.0.0 | py39haa95532_0 725 KB
sqlite-3.35.4 | h2bbff1b_0 761 KB
tzdata-2020f | h52ac0ba_0 113 KB
vc-14.2 | h21ff451_1 8 KB
vs2015_runtime-14.27.29016 | h5e58377_2 1007 KB
wheel-0.36.2 | pyhd3eb1b0_0 33 KB
wincertstore-0.2 | py39h2bbff1b_0 15 KB
------------------------------------------------------------
Total: 25.9 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2021.4.13-haa95532_1
certifi pkgs/main/win-64::certifi-2020.12.5-py39haa95532_0
openssl pkgs/main/win-64::openssl-1.1.1k-h2bbff1b_0
pip pkgs/main/win-64::pip-21.0.1-py39haa95532_0
python pkgs/main/win-64::python-3.9.4-h6244533_0
setuptools pkgs/main/win-64::setuptools-52.0.0-py39haa95532_0
sqlite pkgs/main/win-64::sqlite-3.35.4-h2bbff1b_0
tzdata pkgs/main/noarch::tzdata-2020f-h52ac0ba_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/noarch::wheel-0.36.2-pyhd3eb1b0_0
wincertstore pkgs/main/win-64::wincertstore-0.2-py39h2bbff1b_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
vc-14.2 | 8 KB | ############################################################################ | 100%
certifi-2020.12.5 | 141 KB | ############################################################################ | 100%
openssl-1.1.1k | 4.8 MB | ############################################################################ | 100%
setuptools-52.0.0 | 725 KB | ############################################################################ | 100%
pip-21.0.1 | 1.8 MB | ################################################################################################################################################# | 100%
sqlite-3.35.4 | 761 KB | ################################################################################################################################################# | 100%
tzdata-2020f | 113 KB | ################################################################################################################################################# | 100%
wheel-0.36.2 | 33 KB | ################################################################################################################################################# | 100%
wincertstore-0.2 | 15 KB | ################################################################################################################################################# | 100%
ca-certificates-2021 | 115 KB | ################################################################################################################################################# | 100%
python-3.9.4 | 16.4 MB | ################################################################################################################################################# | 100%
vs2015_runtime-14.27 | 1007 KB | ################################################################################################################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate tensorflow1
#
# To deactivate an active environment, use
#
# $ conda deactivate
C:\Users\29328>conda info --envs
# conda environments:
#
base * F:\behash\Anacondaas\install_001
tensorflow1 F:\behash\Anacondaas\install_001\envs\tensorflow1
C:\Users\29328>python --version
Python 3.8.5
C:\Users\29328>
部分参考来源:https://zhuanlan.zhihu.com/p/56210706
anaconda官网:https://www.anaconda.com/products/individual/download-success
另外的,进一步的tensorflow学习教程
https://zhuanlan.zhihu.com/p/59507137