conda create -n wind_2021 python==3.7
(base) C:\Users\bim>conda create -n wind_2021 python==3.7 Channels: - defaults Platform: win-64 Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: D:\Anaconda\install\envs\wind_2021 added / updated specs: - python==3.7 The following packages will be downloaded: package | build ---------------------------|----------------- certifi-2022.12.7 | py37haa95532_0 149 KB pip-22.3.1 | py37haa95532_0 2.7 MB python-3.7.0 | hea74fb7_0 16.6 MB setuptools-65.6.3 | py37haa95532_0 1.1 MB vc-14.2 | h2eaa2aa_1 10 KB vs2015_runtime-14.29.30133 | h43f2093_3 1.1 MB wheel-0.38.4 | py37haa95532_0 82 KB wincertstore-0.2 | py37haa95532_2 15 KB ------------------------------------------------------------ Total: 21.8 MB The following NEW packages will be INSTALLED: certifi pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 pip pkgs/main/win-64::pip-22.3.1-py37haa95532_0 python pkgs/main/win-64::python-3.7.0-hea74fb7_0 setuptools pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0 vc pkgs/main/win-64::vc-14.2-h2eaa2aa_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.29.30133-h43f2093_3 wheel pkgs/main/win-64::wheel-0.38.4-py37haa95532_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py37haa95532_2 Proceed ([y]/n)? y Downloading and Extracting Packages: Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate wind_2021 # # To deactivate an active environment, use # # $ conda deactivate (base) C:\Users\bim> (base) C:\Users\bim> (base) C:\Users\bim>
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 cpuonly -c pytorch
(wind_2021) C:\Users\bim> (wind_2021) C:\Users\bim>python Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> import torch >>> >>> >>> >>> print(torch.__version__) 1.13.1 >>> >>> >>> >>> torch.cuda.is_available() False >>> >>> >>> >>> exit() (wind_2021) C:\Users\bim>
####################################
标签:py37haa95532,bim,win,环境,CD,实验,pkgs,64,main From: https://www.cnblogs.com/herd/p/18244829