- 镜像安装库
conda create -n YOLOV3 python=3.6
conda env list
conda activate YOLOV3 激活环境
conda install --file=C:\Users\qiqiw\Desktop\k-yolov3-master\requirments.txt
conda info --envs # 可以罗列出所有环境的信息和存放路径
conda remove -n tf2-gpu --all #tf2-gpu为想要删除的环境名称
conda list
pycharm里面配置
pip install tensorflow -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
夸项目安装库
E:\>cd E:\CodePractice\python代码\env\Scripts
E:\CodePractice\python代码\env\Scripts>pip install -r C:\Users\qiqiw\Desktop\deep_sort_pytorch-master\env\requirements.txt -f https://download.pytorch.org/whl/torch_stable.html
- Python程序xxx.py打包为xxx.exe程序
pyinstaller 主程序文件名.py --noconsole --hidden-import PySide2.QtXml
- Django常用
Django-admin startproject mysite #项目名称
python manage.py startapp app01
python manage.py runserver
python manage.py makemigrations
python manage.py migrate
- 小程序引入vantage-weepAPP构建npm
终端输入:
npm init -y
npm install @vant/weapp
构建npm 即可
- Python打包
pyinstaller 主程序文件名.py --noconsole --hidden-import PySide2.QtXml
- 22
- 222
- 2
- 2
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
微信小程序开发文档
Vant Weapp开发文档
(base) C:\Users\qiqiw>conda activate YOLOV3
(YOLOV3) C:\Users\qiqiw>pip install matplotlib>=3.2.2 -f https://download.pytorch.org/whl/torch_stable.html
Cache entry deserialization failed, entry ignored
Exception:
Traceback (most recent call last):
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 232, in _error_catcher
yield
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 314, in read
data = self._fp.read(amt)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
data = self.__fp.read(amt)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\http\client.py", line 449, in read
n = self.readinto(b)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\http\client.py", line 493, in readinto
n = self.fp.readinto(b)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\ssl.py", line 1002, in recv_into
return self.read(nbytes, buffer)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\ssl.py", line 865, in read
return self._sslobj.read(len, buffer)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\ssl.py", line 625, in read
v = self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 659, in unpack_http_url
hashes)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 571, in written_chunks
for chunk in chunks:
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\utils\ui.py", line 139, in iter
for x in it:
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\download.py", line 560, in resp_read
decode_content=False):
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 357, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 324, in read
flush_decoder = True
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "D:\Softwareinstall\anaconda\envs\YOLOV3\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 250, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
pip._vendor.requests.packages.urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)", ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
(YOLOV3) C:\Users\qiqiw>pip install matplotlib>=3.2.2 -f https://download.pytorch.org/whl/torch_stable.html
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
You are using pip version 9.0.1, however version 22.0.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(YOLOV3) C:\Users\qiqiw>python -m pip install --upgrade pip
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Successfully uninstalled pip-9.0.1
Successfully installed pip-21.3.1
You are using pip version 21.3.1, however version 22.0.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(YOLOV3) C:\Users\qiqiw>pip install matplotlib>=3.2.2 -f https://download.pytorch.org/whl/torch_stable.html
(YOLOV3) C:\Users\qiqiw>pip install matplotlib>=3.2.2
(YOLOV3) C:\Users\qiqiw>pip install -r C:\Users\qiqiw\Desktop\requirements.txt
Requirement already satisfied: matplotlib>=3.2.2 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from -r C:\Users\qiqiw\Desktop\requirements.txt (line 4)) (3.3.4)
Requirement already satisfied: numpy>=1.18.5 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from -r C:\Users\qiqiw\Desktop\requirements.txt (line 5)) (1.19.5)
Collecting opencv-python>=4.1.2
Using cached opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB)
Requirement already satisfied: Pillow>=7.1.2 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from -r C:\Users\qiqiw\Desktop\requirements.txt (line 7)) (8.4.0)
Collecting PyYAML>=5.3.1
Using cached PyYAML-6.0-cp36-cp36m-win_amd64.whl (153 kB)
Collecting requests>=2.23.0
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting scipy>=1.4.1
Using cached scipy-1.5.4-cp36-cp36m-win_amd64.whl (31.2 MB)
Collecting torch>=1.7.0
Downloading torch-1.10.2-cp36-cp36m-win_amd64.whl (226.6 MB)
|████████████████████████████████| 226.6 MB 4.0 kB/s
Collecting torchvision>=0.8.1
Using cached torchvision-0.11.3-cp36-cp36m-win_amd64.whl (985 kB)
Collecting tqdm>=4.41.0
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting tensorboard>=2.4.1
Using cached tensorboard-2.8.0-py3-none-any.whl (5.8 MB)
Collecting wandb
Downloading wandb-0.12.15-py2.py3-none-any.whl (1.8 MB)
|████████████████████████████████| 1.8 MB 930 kB/s
Collecting pandas>=1.1.4
Using cached pandas-1.1.5-cp36-cp36m-win_amd64.whl (8.7 MB)
Collecting seaborn>=0.11.0
Using cached seaborn-0.11.2-py3-none-any.whl (292 kB)
Collecting thop
Using cached thop-0.0.31.post2005241907-py3-none-any.whl (8.7 kB)
Requirement already satisfied: python-dateutil>=2.1 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from matplotlib>=3.2.2->-r C:\Users\qiqiw\Desktop\requirements.txt (line 4)) (2.8.2)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from matplotlib>=3.2.2->-r C:\Users\qiqiw\Desktop\requirements.txt (line 4)) (3.0.7)
Requirement already satisfied: cycler>=0.10 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from matplotlib>=3.2.2->-r C:\Users\qiqiw\Desktop\requirements.txt (line 4)) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from matplotlib>=3.2.2->-r C:\Users\qiqiw\Desktop\requirements.txt (line 4)) (1.3.1)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 6.8 MB/s
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting dataclasses
Using cached dataclasses-0.8-py3-none-any.whl (19 kB)
Collecting typing-extensions
Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting importlib-resources
Using cached importlib_resources-5.4.0-py3-none-any.whl (28 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: wheel>=0.26 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from tensorboard>=2.4.1->-r C:\Users\qiqiw\Desktop\requirements.txt (line 17)) (0.29.0)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Collecting markdown>=2.6.8
Using cached Markdown-3.3.6-py3-none-any.whl (97 kB)
Collecting grpcio>=1.24.3
Downloading grpcio-1.44.0-cp36-cp36m-win_amd64.whl (3.4 MB)
|████████████████████████████████| 3.4 MB 1.3 MB/s
Collecting werkzeug>=0.11.15
Using cached Werkzeug-2.0.3-py3-none-any.whl (289 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting absl-py>=0.4
Using cached absl_py-1.0.0-py3-none-any.whl (126 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
Collecting google-auth<3,>=1.6.3
Downloading google_auth-2.6.6-py2.py3-none-any.whl (156 kB)
|████████████████████████████████| 156 kB 595 kB/s
Collecting protobuf>=3.6.0
Using cached protobuf-3.19.4-cp36-cp36m-win_amd64.whl (897 kB)
Collecting setuptools>=41.0.0
Using cached setuptools-59.6.0-py3-none-any.whl (952 kB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting Click!=8.0.0,>=7.0
Downloading click-8.0.4-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 2.2 MB/s
Collecting psutil>=5.0.0
Using cached psutil-5.9.0-cp36-cp36m-win_amd64.whl (247 kB)
Collecting sentry-sdk>=1.0.0
Downloading sentry_sdk-1.5.10-py2.py3-none-any.whl (144 kB)
|████████████████████████████████| 144 kB 3.3 MB/s
Requirement already satisfied: six>=1.13.0 in d:\softwareinstall\anaconda\envs\yolov3\lib\site-packages (from wandb->-r C:\Users\qiqiw\Desktop\requirements.txt (line 18)) (1.16.0)
Collecting setproctitle
Downloading setproctitle-1.2.3-cp36-cp36m-win_amd64.whl (10 kB)
Collecting pathtools
Using cached pathtools-0.1.2-py3-none-any.whl
Collecting GitPython>=1.0.0
Using cached GitPython-3.1.18-py3-none-any.whl (170 kB)
Collecting shortuuid>=0.5.0
Using cached shortuuid-1.0.8-py3-none-any.whl (9.5 kB)
Collecting promise<3,>=2.0
Using cached promise-2.3-py3-none-any.whl
Collecting pytz>=2017.2
Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
|████████████████████████████████| 503 kB 6.4 MB/s
Collecting importlib-metadata
Using cached importlib_metadata-4.8.3-py3-none-any.whl (17 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.8-py3-none-any.whl (39 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cachetools<6.0,>=2.0.0
Using cached cachetools-4.2.4-py3-none-any.whl (10 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting zipp>=3.1.0
Using cached zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.0-py3-none-any.whl (151 kB)
Installing collected packages: urllib3, pyasn1, idna, charset-normalizer, certifi, zipp, typing-extensions, smmap, rsa, requests, pyasn1-modules, oauthlib, cachetools, requests-oauthlib, pytz, importlib-metadata, google-auth, gitdb, dataclasses, colorama, werkzeug, torch, tensorboard-plugin-wit, tensorboard-data-server, shortuuid, setuptools, setproctitle, sentry-sdk, scipy, PyYAML, psutil, protobuf, promise, pathtools, pandas, markdown, importlib-resources, grpcio, google-auth-oauthlib, GitPython, docker-pycreds, Click, absl-py, wandb, tqdm, torchvision, thop, tensorboard, seaborn, opencv-python
Attempting uninstall: certifi
Found existing installation: certifi 2016.2.28
Uninstalling certifi-2016.2.28:
Successfully uninstalled certifi-2016.2.28
Attempting uninstall: setuptools
Found existing installation: setuptools 36.4.0
Uninstalling setuptools-36.4.0:
Successfully uninstalled setuptools-36.4.0
Successfully installed Click-8.0.4 GitPython-3.1.18 PyYAML-6.0 absl-py-1.0.0 cachetools-4.2.4 certifi-2021.10.8 charset-normalizer-2.0.12 colorama-0.4.4 dataclasses-0.8 docker-pycreds-0.4.0 gitdb-4.0.9 google-auth-2.6.6 google-auth-oauthlib-0.4.6 grpcio-1.44.0 idna-3.3 importlib-metadata-4.8.3 importlib-resources-5.4.0 markdown-3.3.6 oauthlib-3.2.0 opencv-python-4.5.5.64 pandas-1.1.5 pathtools-0.1.2 promise-2.3 protobuf-3.19.4 psutil-5.9.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pytz-2022.1 requests-2.27.1 requests-oauthlib-1.3.1 rsa-4.8 scipy-1.5.4 seaborn-0.11.2 sentry-sdk-1.5.10 setproctitle-1.2.3 setuptools-59.6.0 shortuuid-1.0.8 smmap-5.0.0 tensorboard-2.8.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 thop-0.0.31.post2005241907 torch-1.10.2 torchvision-0.11.3 tqdm-4.64.0 typing-extensions-4.1.1 urllib3-1.26.9 wandb-0.12.15 werkzeug-2.0.3 zipp-3.6.0
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>
(YOLOV3) C:\Users\qiqiw>conda list
# packages in environment at D:\Softwareinstall\anaconda\envs\YOLOV3:
#
# Name Version Build Channel
absl-py 1.0.0 pypi_0 pypi
cachetools 4.2.4 pypi_0 pypi
certifi 2021.10.8 pypi_0 pypi
charset-normalizer 2.0.12 pypi_0 pypi
click 8.0.4 pypi_0 pypi
colorama 0.4.4 pypi_0 pypi
cycler 0.11.0 pypi_0 pypi
dataclasses 0.8 pypi_0 pypi
docker-pycreds 0.4.0 pypi_0 pypi
gitdb 4.0.9 pypi_0 pypi
gitpython 3.1.18 pypi_0 pypi
google-auth 2.6.6 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
grpcio 1.44.0 pypi_0 pypi
idna 3.3 pypi_0 pypi
importlib-metadata 4.8.3 pypi_0 pypi
importlib-resources 5.4.0 pypi_0 pypi
kiwisolver 1.3.1 pypi_0 pypi
markdown 3.3.6 pypi_0 pypi
matplotlib 3.3.4 pypi_0 pypi
numpy 1.19.5 pypi_0 pypi
oauthlib 3.2.0 pypi_0 pypi
opencv-python 4.5.5.64 pypi_0 pypi
pandas 1.1.5 pypi_0 pypi
pathtools 0.1.2 pypi_0 pypi
pillow 8.4.0 pypi_0 pypi
pip 21.3.1 pypi_0 pypi
promise 2.3 pypi_0 pypi
protobuf 3.19.4 pypi_0 pypi
psutil 5.9.0 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyparsing 3.0.7 pypi_0 pypi
python 3.6.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
python-dateutil 2.8.2 pypi_0 pypi
pytz 2022.1 pypi_0 pypi
pyyaml 6.0 pypi_0 pypi
requests 2.27.1 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rsa 4.8 pypi_0 pypi
scipy 1.5.4 pypi_0 pypi
seaborn 0.11.2 pypi_0 pypi
sentry-sdk 1.5.10 pypi_0 pypi
setproctitle 1.2.3 pypi_0 pypi
setuptools 59.6.0 pypi_0 pypi
shortuuid 1.0.8 pypi_0 pypi
six 1.16.0 pypi_0 pypi
smmap 5.0.0 pypi_0 pypi
tensorboard 2.8.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
thop 0.0.31-2005241907 pypi_0 pypi
torch 1.10.2 pypi_0 pypi
torchvision 0.11.3 pypi_0 pypi
tqdm 4.64.0 pypi_0 pypi
typing-extensions 4.1.1 pypi_0 pypi
urllib3 1.26.9 pypi_0 pypi
vc 14 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
vs2015_runtime 14.0.25420 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
wandb 0.12.15 pypi_0 pypi
werkzeug 2.0.3 pypi_0 pypi
wheel 0.29.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
wincertstore 0.2 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
zipp 3.6.0 pypi_0 pypi
(YOLOV3) C:\Users\qiqiw>