Yolo Aimbot Error resolution
warn(f"Failed to load image Python extension: {e}")
pip install --no-deps torchvision==0.11.3
不能用conda默认安装,pip默认版本即可,或者指定最新版本
conda更换国内源:
C盘用户目录中找到.condarcw文件,没有则创建
2、将下方配置复制到文件中,点击保存
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
show_channel_urls: true
ssl_verify: false
^{}接受字符串作为参数,因此可以使用任何修改字符串的内容。
https://www.cnpython.com/qa/60519
- 安装Anaconda3,并勾选python3.9与path
- pip换源
- git clone项目
虚拟化python环境
conda create -n aimbot python=3.8.5
5.激活环境:
conda activate aimbot
6.安装模块
安装cuda>=11.3版本 #https://pytorch.org/get-started/locally/ pip install numpy pip install opencv-python pip install pywin32 -U pip install torch-1.10.2+cu113-cp38-cp38-win_amd64.whl pip install torchaudio-0.10.2+cu113-cp38-cp38-win_amd64.whl pip install torchvision-0.11.3+cu113-cp38-cp38-win_amd64.whl #pip install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
Error:
ImportError: DLL load failed while importing win32api: 找不到指定的模块
ImportError: DLL load failed while importing win32gui: 找不到指定的模块
https://blog.csdn.net/ljr_123/article/details/104693372
ImportError: No module named 'seaborn'
conda install seaborn
批处理无法直接使用conda activate环境
https://www.freesion.com/article/83461267787/
https://blog.csdn.net/m0_37661841/article/details/104049897
Anconda3换源
https://blog.csdn.net/chengmo123/article/details/102913254
播放音频
import winsound
winsound.PlaySound('weights/on.wav', flags=1)
python隐藏控制台
https://www.cnblogs.com/shenji/p/14828652.html