旧台式机配置pytorch环境
1、
(base) C:\Users\Administrator> (base) C:\Users\Administrator> (base) C:\Users\Administrator>conda create -n wind_2023 python==3.7 Collecting package metadata (repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.8.3 latest version: 23.7.3 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: N:\Anaconda3\install\envs\wind_2023 added / updated specs: - python==3.7 The following packages will be downloaded: package | build ---------------------------|----------------- certifi-2022.12.7 | py37haa95532_0 152 KB pip-22.3.1 | py37haa95532_0 2.7 MB python-3.7.0 | hea74fb7_0 21.1 MB setuptools-65.6.3 | py37haa95532_0 1.4 MB vc-14.2 | h21ff451_1 8 KB vs2015_runtime-14.27.29016 | h5e58377_2 2.2 MB wheel-0.38.4 | py37haa95532_0 76 KB wincertstore-0.2 | py37haa95532_2 15 KB ------------------------------------------------------------ Total: 27.7 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-h21ff451_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 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 python-3.7.0 | 21.1 MB | ############################################################################ | 100% pip-22.3.1 | 2.7 MB | ################################################################################################################################################################################################# | 100% vs2015_runtime-14.27 | 2.2 MB | ################################################################################################################################################################################################# | 100% wheel-0.38.4 | 76 KB | ################################################################################################################################################################################################# | 100% setuptools-65.6.3 | 1.4 MB | ################################################################################################################################################################################################# | 100% wincertstore-0.2 | 15 KB | ################################################################################################################################################################################################# | 100% certifi-2022.12.7 | 152 KB | ################################################################################################################################################################################################# | 100% vc-14.2 | 8 KB | ################################################################################################################################################################################################# | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate wind_2023 # # To deactivate an active environment, use # # $ conda deactivate (base) C:\Users\Administrator> (base) C:\Users\Administrator>
(base) C:\Users\Administrator> (base) C:\Users\Administrator>conda activate wind_2023 (wind_2023) C:\Users\Administrator> (wind_2023) C:\Users\Administrator>
(wind_2023) C:\Users\Administrator> (wind_2023) C:\Users\Administrator>pip3 install torch torchvision torchaudio Collecting torch Downloading torch-1.13.1-cp37-cp37m-win_amd64.whl (162.6 MB) ---------------------------------------- 162.6/162.6 MB 9.5 MB/s eta 0:00:00 Collecting torchvision Downloading torchvision-0.14.1-cp37-cp37m-win_amd64.whl (1.1 MB) ---------------------------------------- 1.1/1.1 MB 72.2 MB/s eta 0:00:00 Collecting torchaudio Downloading torchaudio-0.13.1-cp37-cp37m-win_amd64.whl (2.0 MB) ---------------------------------------- 2.0/2.0 MB 43.2 MB/s eta 0:00:00 Collecting typing-extensions Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB) Collecting pillow!=8.3.*,>=5.3.0 Downloading Pillow-9.5.0-cp37-cp37m-win_amd64.whl (2.5 MB) ---------------------------------------- 2.5/2.5 MB 53.8 MB/s eta 0:00:00 Collecting numpy Downloading numpy-1.21.6-cp37-cp37m-win_amd64.whl (14.0 MB) ---------------------------------------- 14.0/14.0 MB 46.7 MB/s eta 0:00:00 Collecting requests Downloading requests-2.31.0-py3-none-any.whl (62 kB) ---------------------------------------- 62.6/62.6 kB ? eta 0:00:00 Requirement already satisfied: certifi>=2017.4.17 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from requests->torchvision) (2022.12.7) Collecting charset-normalizer<4,>=2 Downloading charset_normalizer-3.2.0-cp37-cp37m-win_amd64.whl (94 kB) ---------------------------------------- 94.7/94.7 kB ? eta 0:00:00 Collecting urllib3<3,>=1.21.1 Downloading urllib3-2.0.4-py3-none-any.whl (123 kB) ---------------------------------------- 123.9/123.9 kB 7.1 MB/s eta 0:00:00 Collecting idna<4,>=2.5 Downloading idna-3.4-py3-none-any.whl (61 kB) ---------------------------------------- 61.5/61.5 kB ? eta 0:00:00 Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, torch, requests, torchvision, torchaudio Successfully installed charset-normalizer-3.2.0 idna-3.4 numpy-1.21.6 pillow-9.5.0 requests-2.31.0 torch-1.13.1 torchaudio-0.13.1 torchvision-0.14.1 typing-extensions-4.7.1 urllib3-2.0.4 (wind_2023) C:\Users\Administrator> (wind_2023) C:\Users\Administrator> (wind_2023) C:\Users\Administrator>
(wind_2023) O:\PytorchProject\plc_project_2023090501>pip install -r requirements.txt Collecting Cython Downloading Cython-3.0.2-cp37-cp37m-win_amd64.whl (2.7 MB) ---------------------------------------- 2.7/2.7 MB 8.2 MB/s eta 0:00:00 Collecting matplotlib>=3.2.2 Downloading matplotlib-3.5.3-cp37-cp37m-win_amd64.whl (7.2 MB) ---------------------------------------- 7.2/7.2 MB 23.1 MB/s eta 0:00:00 Requirement already satisfied: numpy>=1.18.5 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from -r requirements.txt (line 6)) (1.21.6) Collecting opencv-python>=4.1.2 Downloading opencv_python-4.8.0.76-cp37-abi3-win_amd64.whl (38.1 MB) ---------------------------------------- 38.1/38.1 MB 25.1 MB/s eta 0:00:00 Requirement already satisfied: Pillow in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from -r requirements.txt (line 8)) (9.5.0) Collecting PyYAML>=5.3 Downloading PyYAML-6.0.1-cp37-cp37m-win_amd64.whl (153 kB) ---------------------------------------- 153.2/153.2 kB 9.5 MB/s eta 0:00:00 Collecting scipy>=1.4.1 Downloading scipy-1.7.3-cp37-cp37m-win_amd64.whl (34.1 MB) ---------------------------------------- 34.1/34.1 MB 32.8 MB/s eta 0:00:00 Collecting tensorboard>=2.2 Downloading tensorboard-2.11.2-py3-none-any.whl (6.0 MB) ---------------------------------------- 6.0/6.0 MB 47.9 MB/s eta 0:00:00 Requirement already satisfied: torch>=1.7.0 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from -r requirements.txt (line 12)) (1.13.1) Requirement already satisfied: torchvision>=0.8.1 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from -r requirements.txt (line 13)) (0.14.1) Collecting tqdm>=4.41.0 Downloading tqdm-4.66.1-py3-none-any.whl (78 kB) ---------------------------------------- 78.3/78.3 kB 4.3 MB/s eta 0:00:00 Collecting seaborn>=0.11.0 Downloading seaborn-0.12.2-py3-none-any.whl (293 kB) ---------------------------------------- 293.3/293.3 kB 18.9 MB/s eta 0:00:00 Collecting pandas Downloading pandas-1.1.5-cp37-cp37m-win_amd64.whl (8.7 MB) ---------------------------------------- 8.7/8.7 MB 28.0 MB/s eta 0:00:00 Collecting thop Downloading thop-0.1.1.post2209072238-py3-none-any.whl (15 kB) Collecting pycocotools>=2.0 Downloading pycocotools-2.0.7-cp37-cp37m-win_amd64.whl (84 kB) ---------------------------------------- 84.6/84.6 kB 5.0 MB/s eta 0:00:00 Collecting pyqt5==5.12.1 Downloading PyQt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.4 MB) ---------------------------------------- 47.4/47.4 MB 4.6 MB/s eta 0:00:00 Collecting redis Downloading redis-5.0.0-py3-none-any.whl (250 kB) ---------------------------------------- 250.1/250.1 kB 15.0 MB/s eta 0:00:00 Collecting PyQt5_sip<4.20,>=4.19.14 Downloading PyQt5_sip-4.19.19-cp37-none-win_amd64.whl (52 kB) ---------------------------------------- 52.0/52.0 kB ? eta 0:00:00 Collecting python-dateutil>=2.7 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) ---------------------------------------- 247.7/247.7 kB 15.8 MB/s eta 0:00:00 Collecting kiwisolver>=1.0.1 Downloading kiwisolver-1.4.5-cp37-cp37m-win_amd64.whl (55 kB) ---------------------------------------- 55.8/55.8 kB 3.0 MB/s eta 0:00:00 Collecting fonttools>=4.22.0 Downloading fonttools-4.38.0-py3-none-any.whl (965 kB) ---------------------------------------- 965.4/965.4 kB 30.8 MB/s eta 0:00:00 Collecting packaging>=20.0 Downloading packaging-23.1-py3-none-any.whl (48 kB) ---------------------------------------- 48.9/48.9 kB ? eta 0:00:00 Collecting cycler>=0.10 Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB) Collecting pyparsing>=2.2.1 Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB) ---------------------------------------- 103.1/103.1 kB 6.2 MB/s eta 0:00:00 Collecting absl-py>=0.4 Downloading absl_py-1.4.0-py3-none-any.whl (126 kB) ---------------------------------------- 126.5/126.5 kB 7.3 MB/s eta 0:00:00 Collecting google-auth<3,>=1.6.3 Downloading google_auth-2.22.0-py2.py3-none-any.whl (181 kB) ---------------------------------------- 181.8/181.8 kB 10.7 MB/s eta 0:00:00 Collecting werkzeug>=1.0.1 Downloading Werkzeug-2.2.3-py3-none-any.whl (233 kB) ---------------------------------------- 233.6/233.6 kB 14.9 MB/s eta 0:00:00 Requirement already satisfied: wheel>=0.26 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from tensorboard>=2.2->-r requirements.txt (line 11)) (0.38.4) Requirement already satisfied: requests<3,>=2.21.0 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from tensorboard>=2.2->-r requirements.txt (line 11)) (2.31.0) Collecting grpcio>=1.24.3 Downloading grpcio-1.57.0-cp37-cp37m-win_amd64.whl (4.3 MB) ---------------------------------------- 4.3/4.3 MB 46.0 MB/s eta 0:00:00 Requirement already satisfied: setuptools>=41.0.0 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from tensorboard>=2.2->-r requirements.txt (line 11)) (65.6.3) Collecting tensorboard-data-server<0.7.0,>=0.6.0 Downloading tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB) Collecting tensorboard-plugin-wit>=1.6.0 Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB) ---------------------------------------- 781.3/781.3 kB 48.2 MB/s eta 0:00:00 Collecting markdown>=2.6.8 Downloading Markdown-3.4.4-py3-none-any.whl (94 kB) ---------------------------------------- 94.2/94.2 kB 5.6 MB/s eta 0:00:00 Collecting google-auth-oauthlib<0.5,>=0.4.1 Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB) Collecting protobuf<4,>=3.9.2 Downloading protobuf-3.20.3-cp37-cp37m-win_amd64.whl (905 kB) ---------------------------------------- 905.1/905.1 kB 28.9 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from torch>=1.7.0->-r requirements.txt (line 12)) (4.7.1) Collecting colorama Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB) Collecting pytz>=2017.2 Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB) ---------------------------------------- 502.5/502.5 kB 30.8 MB/s eta 0:00:00 Collecting async-timeout>=4.0.2 Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB) Collecting importlib-metadata>=1.0 Downloading importlib_metadata-6.7.0-py3-none-any.whl (22 kB) Collecting six>=1.9.0 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pyasn1-modules>=0.2.1 Downloading pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB) ---------------------------------------- 181.3/181.3 kB ? eta 0:00:00 Collecting rsa<5,>=3.1.4 Downloading rsa-4.9-py3-none-any.whl (34 kB) Collecting cachetools<6.0,>=2.0.0 Downloading cachetools-5.3.1-py3-none-any.whl (9.3 kB) Collecting urllib3<2.0 Downloading urllib3-1.26.16-py2.py3-none-any.whl (143 kB) ---------------------------------------- 143.1/143.1 kB 8.3 MB/s eta 0:00:00 Collecting requests-oauthlib>=0.7.0 Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB) Collecting zipp>=0.5 Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB) Requirement already satisfied: charset-normalizer<4,>=2 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from requests<3,>=2.21.0->tensorboard>=2.2->-r requirements.txt (line 11)) (3.2.0) Requirement already satisfied: certifi>=2017.4.17 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from requests<3,>=2.21.0->tensorboard>=2.2->-r requirements.txt (line 11)) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in n:\anaconda3\install\envs\wind_2023\lib\site-packages (from requests<3,>=2.21.0->tensorboard>=2.2->-r requirements.txt (line 11)) (3.4) Collecting MarkupSafe>=2.1.1 Downloading MarkupSafe-2.1.3-cp37-cp37m-win_amd64.whl (17 kB) Collecting pyasn1<0.6.0,>=0.4.6 Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB) ---------------------------------------- 83.9/83.9 kB ? eta 0:00:00 Collecting oauthlib>=3.0.0 Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB) ---------------------------------------- 151.7/151.7 kB 8.8 MB/s eta 0:00:00 Installing collected packages: tensorboard-plugin-wit, pytz, PyQt5_sip, zipp, urllib3, tensorboard-data-server, six, scipy, PyYAML, pyqt5, pyparsing, pyasn1, protobuf, packaging, opencv-python, oauthlib, MarkupSafe, kiwisolver, grpcio, fonttools, Cython, cycler, colorama, cachetools, async-timeout, absl-py, werkzeug, tqdm, thop, rsa, python-dateutil, pyasn1-modules, importlib-metadata, requests-oauthlib, redis, pandas, matplotlib, markdown, google-auth, seaborn, pycocotools, google-auth-oauthlib, tensorboard Attempting uninstall: urllib3 Found existing installation: urllib3 2.0.4 Uninstalling urllib3-2.0.4: Successfully uninstalled urllib3-2.0.4 Successfully installed Cython-3.0.2 MarkupSafe-2.1.3 PyQt5_sip-4.19.19 PyYAML-6.0.1 absl-py-1.4.0 async-timeout-4.0.3 cachetools-5.3.1 colorama-0.4.6 cycler-0.11.0 fonttools-4.38.0 google-auth-2.22.0 google-auth-oauthlib-0.4.6 grpcio-1.57.0 importlib-metadata-6.7.0 kiwisolver-1.4.5 markdown-3.4.4 matplotlib-3.5.3 oauthlib-3.2.2 opencv-python-4.8.0.76 packaging-23.1 pandas-1.1.5 protobuf-3.20.3 pyasn1-0.5.0 pyasn1-modules-0.3.0 pycocotools-2.0.7 pyparsing-3.1.1 pyqt5-5.12.1 python-dateutil-2.8.2 pytz-2023.3.post1 redis-5.0.0 requests-oauthlib-1.3.1 rsa-4.9 scipy-1.7.3 seaborn-0.12.2 six-1.16.0 tensorboard-2.11.2 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 thop-0.1.1.post2209072238 tqdm-4.66.1 urllib3-1.26.16 werkzeug-2.2.3 zipp-3.15.0 (wind_2023) O:\PytorchProject\plc_project_2023090501> (wind_2023) O:\PytorchProject\plc_project_2023090501> (wind_2023) O:\PytorchProject\plc_project_2023090501>
# pip install -r requirements.txt # base ---------------------------------------- Cython matplotlib>=3.2.2 numpy>=1.18.5 opencv-python>=4.1.2 Pillow PyYAML>=5.3 scipy>=1.4.1 tensorboard>=2.2 torch>=1.7.0 torchvision>=0.8.1 tqdm>=4.41.0 # logging ------------------------------------- # wandb # plotting ------------------------------------ seaborn>=0.11.0 pandas # export -------------------------------------- # coremltools==4.0 # onnx>=1.8.0 # scikit-learn==0.19.2 # for coreml quantization # extras -------------------------------------- thop # FLOPS computation pycocotools>=2.0 # COCO mAP pyqt5==5.12.1 #pyqt5-tools==5.15.2 redis
################################
QQ 3087438119