[英]Cabal: missing dependency on foreign C library
我一直在嘗試在Windows計算機上安裝tensorflow / haskell軟件包。
但是,在使用stack和cabal進行安裝時,我始終遇到此錯誤:
Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe: Missing dependency on a foreign
library:
* Missing C library: tensorflow
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
根據Tensorflow網站: https ://www.tensorflow.org/install/install_c,用於Tensorflow的C軟件包僅在Unix計算機上運行。 我不確定這是死路還是有一些解決方法。
我沒有鏈接庫或cabal的經驗,希望能獲得一些幫助。
使用Cabal,我在目錄中包含以下.cabal文件:
cabal-version: >= 1.2
Executable hax
Includes: c_api.h
Extra-libraries: tensorflow
但是我仍然收到錯誤: cabal.exe: Missing dependency on a foreign library: * Missing C library: tensorflow The exception was: user error (Using 'build-type: Custom' but there is no Setup.hs or Setup.lhs script.)
您編寫“根據Tensorflow網站: https ://www.tensorflow.org/install/install_c,用於Tensorflow的C程序包僅在Unix計算機上運行。我不確定這是死路還是有一些解決方法“。
的確,如果您的機器上沒有安裝tensorflow
C軟件包-因為它將無法在其上運行,那么您將找不到綁定到它的軟件包。
沒有解決的辦法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.