我尝试执行命令 python-m transcrypt -b -m -n mr_index.py
并在代码的 string 上失败"import sqlite3"
。为什么?
C:\Users\Legion\Downloads\meterrhyme-master>python -m transcrypt -b -m -n mr_index.py Transcrypt
(TM) Python to JavaScript Small Sane Subset Transpiler 版本 3.7.16 版权所有 (C) Geatec Engineering。许可证:Apache 2.0
将目标代码保存在:C: /Users/Legion/Downloads/meterrhyme-master/_target_/org.transcrypt._runtime_.js编译时 出错(最后一个有问题的文件): 文件 'mr_index',第 5 行,即: 导入错误,找不到任何一个:C:/Users/Legion/Downloads/meterrhyme-master/sqlite3.py C:/Users/Legion/Downloads/meterrhyme-master/sqlite3.js C:/Users/Legion /AppData/Local/Programs/Python/Python38-32/lib/site-packages/transcrypt/modules/sqlite3.py
C:/Users/Legion/AppData/Local/Programs/Python/Python38-32/lib/site-packages/transcrypt/modules/sqlite3.js
C:/Users/Legion/Downloads/meterrhyme-master/sqlite3.py
C: /Users/Legion/Downloads/meterrhyme-master/sqlite3.js
C:/Users/Legion/AppData/Local/Programs/Python/Python38-32/sqlite3.py
C:/Users/Legion/AppData/Local/Programs/Python /Python38-32/sqlite3.js
C:/Users/Legion/AppData/Local/Programs/Python/Python38-32/lib/site-packages/sqlite3.py
C:/Users/Legion/AppData/Local/Programs/Python /Python38-32/lib/site-packages/sqlite3.js
中止