##OK# nuitka --mingw64 --standalone --show-progress --nofollow-imports --plugin-enable=torch,numpy --follow-import-to=cam,cam.objecttracker,yolox,exps,numpy --output-dir=out nt.py
其中,--follow-import-to 不能少了numpy
必须参数--plugin-enable=torch,numpy
打包完成后需要将需要的包复制到当前目录
# 将各种依赖包复制到exe文件目录
# C:\Users\ts\anaconda3\envs\pytorch1.8\Lib\site-packages
# C:\Users\ts\anaconda3\Lib\site-packages
# 下得目录或者py文件
# 运行时加入anaconda3或python环境path
# C:\Users\ts\anaconda3;C:\Users\ts\anaconda3\Library\mingw-w64\bin;C:\Users\ts\anaconda3\Library\usr\bin;C:\Users\ts\anaconda3\Library\bin;C:\Users\ts\anaconda3\Scripts;C:\Users\ts\anaconda3\bin;