如何解决Heroku 部署错误消息“conda_compile: line 7: conda: command not found”是什么意思?
我正在尝试将 conda 虚拟环境中的 django 应用程序部署到 Heroku。我正在使用 trib3 的 Heroku conda-buildpack。 Trib3 说我可以将 conda-requirements.txt 文件用于 conda 安装的软件包,也可以将 requirements.txt 用于 pip 安装的软件包。 每次我尝试部署时,我都会从 Heroku 收到相同的错误消息(见下文),“conda_compile: line 7: conda: command not found。”我不知道这是什么意思。因此,我无法解决问题。有人可以为我解释一下吗?谢谢,吉姆
public static void main(String[] args) throws java.io.IOException{
String menu = "MENU: \n1. Science Fiction \n2. Computers and Technology \n3. Cooking \n4. Business \n5. Comics \n6. Exit";
Scanner scanner = new Scanner(system.in); // this line
Map<Integer,String> bookMap = new HashMap<Integer,String>();
bookMap.put(1,"You selected Science Fiction. This is a fun topic.");
bookMap.put(2,"You selected Computers and Technology. This is a complex topic.");
bookMap.put(3,"You selected Cooking. This is a passionate topic.");
bookMap.put(4,"You selected Business. This is a serIoUs topic.");
bookMap.put(5,"You selected Comics. This is an entertaining topic.");
// bookMap.put(6," ");
int x;
do {
System.out.println(menu);
System.out.println("Select an item from the Menu,then press Enter: ");
x = scanner.nextInt(); // and this line
if (x == 6)
System.out.println("You exited the menu.");
else {
System.out.println(bookMap.get(x));
if (x < 1 || x > 6)
System.out.println("Invalid entry. Please enter a number from 1 to 6.");
else
System.out.print(menu);
System.out.println("Select an item from the Menu,then press Enter.");
}
} while (x != 6);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。