编程语言
首页 > 编程语言> > Python .py生成.pyd文件并打包.exe注意事项

Python .py生成.pyd文件并打包.exe注意事项

作者:互联网

pip install Cyphton -i https://pypi.tuna.tsinghua.edu.cn/simple
from distutils.core import setup
from Cython.Build import cythonize

setup(ext_modules=cythonize("BetaV14.py"))
python setup.py build_ext --inplace
pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple
pyinstaller -F BetaV14.py
ValueError: Module file F:\python项目1\BetaV14.py is missing
import BetaV14
if __name__ == '__main__':
    BetaV14()
pyinstaller -F main.py
import win32gui
import win32api
import win32con
import time 
import random
import datetime
import os,sys
import configparser
import numpy as np
from PIL import Image
from scipy.signal import convolve2d
import http.client
import subprocess
import BetaV14
if __name__ == '__main__':
    BetaV14()
python pyinstxtractor.py main.exe

解包main.exe

标签:文件,exe,Python,py,import,main,pyd
来源: https://blog.csdn.net/weixin_45116696/article/details/104861915