Python 求助,pipreqs ./ --encoding='utf-8'生成 python 的 requirement,报错,怎么破

黑山老妖 · 2019年05月20日 · 最后由 黑山老妖 回复于 2019年05月20日 · 1871 次阅读


File "c:\users\wss11416\appdata\local\programs\python\python36\lib\ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "", line 55
print "Warning: JAVA_HOME is not defined correctly."
^
SyntaxError: Missing parentheses in call to 'print'

对应的在网上没找到解决方案

共收到 4 条回复 时间 点赞

python3 的话 print 后面的内容要加()

我去催饭 回复

在哪个文件,哪一行里加()?报错说了 file“unknow”,未知啊

黑山老妖 回复

你这不是 print 语句报的错么,找这行代码所在的位置

我去催饭 回复

找到了,项目里新增的 static 目录,竟然会对打包有影响。。。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册