📌  相关文章
📜  FileNotFoundError:[Errno 2] 没有这样的文件或目录:'E:\\Work\\Geeky_B\\NWIS_DEMO\\dist\\ttest_spacy\\thinc\\neural\\_custom_kernels.cu' [1192] 无法执行脚本 ttest_spacy + pyinstaller - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:09.732000             🧑  作者: Mango

代码示例1
# HOOK FILE FOR SPACY
from PyInstaller.utils.hooks import collect_all

# ----------------------------- SPACY -----------------------------
data = collect_all('spacy')

datas = data[0]
binaries = data[1]
hiddenimports = data[2]

# ----------------------------- THINC -----------------------------
data = collect_all('thinc')

datas += data[0]
binaries += data[1]
hiddenimports += data[2]

# ----------------------------- CYMEM -----------------------------
data = collect_all('cymem')

datas += data[0]
binaries += data[1]
hiddenimports += data[2]

# ----------------------------- PRESHED -----------------------------
data = collect_all('preshed')

datas += data[0]
binaries += data[1]
hiddenimports += data[2]

# ----------------------------- BLIS -----------------------------

data = collect_all('blis')

datas += data[0]
binaries += data[1]
hiddenimports += data[2]

# ----------------------------- OTHER ----------------------------

hiddenimports += ['srsly.msgpack.util']


from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files("en_core_web_sm")