clojure - 无法在类路径上找到 clojure/math/numeric_tower__init.class 或 clojure/math/numeric_tower.clj

标签 clojure leiningen

在全新的 lein 安装中,当我通过 lein repl 启动 repl 时并进入repl:
(use 'clojure.math.numeric-tower)
它抛出一个错误:
FileNotFoundException Could not locate clojure/math/numeric_tower__init.class or clojure/math/numeric_tower.clj on classpath.
我是 Clojure 的新手,所以我真的不知道如何解决这个问题。

Lein 版本:Leiningen 2.7.1 (lein -v)

Clojure 版本:1.8.0 ( (clojure-version) )

最佳答案

添加 [org.clojure/math.numeric-tower "0.0.4"]到项目的依赖项(在 project.clj 中)并重新启动 repl。

关于clojure - 无法在类路径上找到 clojure/math/numeric_tower__init.class 或 clojure/math/numeric_tower.clj,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45400107/

相关文章:

opencv - 如何在项目中使用本地jar?

unit-testing - 如何测试 midje 抛出的异常

clojure - Leiningen:试图在没有 TLS 的情况下使用不安全的 HTTP 存储库

clojure - yogthos/config 在 CIDER 中获取我的环境,但在 lein with-profile 中运行时则不然

clojure - 使用 Leiningen 的 JVM 选项

leiningen - Clojurescript 库 - goog.require 找不到

clojure - 为什么我可以在 clojure 中使用集合作为谓词?

json - 如何在httpkit中将Content-Type设置为application/json

clojure - 使用 taoensso.carmine 检查是否存在多个 key

clojure - 如何在 Clojure 中链接函数调用?