gpt4 book ai didi

python - 不用java转加密?

转载 作者:行者123 更新时间:2023-12-02 02:06:52 35 4
gpt4 key购买 nike

我尝试了 Transcrypt 教程中的“hello”示例,但收到以下错误消息:

      bash-4.3$ transcrypt hello

Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.9.0
Copyright (C) Geatec Engineering. License: Apache 2.0

Saving target code in:
/home/User/hello/__target__/org.transcrypt.__runtime__.js
Saving minified target code in:
/home/User/hello/__target__/org.transcrypt.__runtime__.js

Error while compiling (offending file last):
File 'org.transcrypt.__runtime__', line 0, namely:

[Errno 2] No such file or directory: 'java': 'java'

Aborted

这个错误是由需要java的Google编译器压缩器引起的吗?有没有办法不用java运行Transcrypt?

最佳答案

我用谷歌搜索了该错误并发现 this promising GitHub issue comment其中说

You can now compile without minification, so without Java by using the -n switch.

那么,尝试一下

transcrypt -n hello

关于python - 不用java转加密?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68313288/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com