我正在尝试通过执行将python脚本转换为.exe文件 python setup.py py2exe 在构建过程中,一切看起来都很好,但是当我运行putko.exe时,出现以下错误:
Traceback (most recent call last):
File "putko.py", line 8, in <module>
File "binance\client.pyc", line 8, in <module>
File "binance\helpers.pyc", line 3, in <module>
File "dateparser\__init__.pyc", line 4, in <module>
File "dateparser\date.pyc", line 13, in <module>
File "dateparser\date_parser.pyc", line 11, in <module>
File "dateparser\parser.pyc", line 10, in <module>
File "dateparser\utils\strptime.pyc", line 55, in <module>
File "dateparser\utils\strptime.pyc", line 26, in patch_strptime
ImportError:没有名为_strptime的模块
这是我的setup.py
from distutils.core import setup
import py2exe
setup(console=['putko.py'])
有人可以帮助我解决此问题吗? 我正在使用Windows 7,python2.7