1 2 3 4 5
| pip install pycrypto-2.6.1-cp36-cp36m-win_amd64.whl 可能的报错 https://www.cnblogs.com/jinpingzhao/p/12492878.html pip install pycryptodome pyinstaller -F -i key.ico --key 123456789 qq.py
|
https://blog.csdn.net/HW140701/article/details/93494869
1 2 3 4 5 6 7 8 9 10 11
| 出现如下警告,说明同时安装了 pycrypto 与 pycryptodome
[22048] WARNING: file already exists but should not: C:\Users\DEFAUL~3\AppData\Local\Temp\_MEI220482\Crypto\Cipher\_AES.cp37-win_amd64.pyd
解决办法 进入 D:\Program Files\Python37\Lib\site-packages\Crypto\Cipher 复制_raw_cfb.cp37-win_amd64.pyd做备份 然后pip uninstall pycryptodome
|
打包pyd文件
1 2 3 4 5
| pip install cython
pip install pyinstaller
建立build_pyd.py
|
1 2 3 4 5 6 7 8 9
| from distutils.core import setup from Cython.Build import cythonize
setup( name='Anything you want', ext_modules=cythonize(["course.py" ], language_level=3 ), )
|
1
| python build_pyd.py build_ext --inplace
|
设置环境变量
1 2 3
| set PATH=%path%;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\bin\x64\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\ set include=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\Include\shared\ set lib=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64\;C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64\
|
反编译pyc
1 2
| pip install uncompyle uncompyle6 搜索引擎.pyc > 搜索引擎.py
|
反编译:https://blog.csdn.net/qq_44198436/article/details/97314626
pyd:https://blog.csdn.net/fangkailove/article/details/104965270
pyd引导:https://www.lizenghai.com/archives/898.html#pyd