JsonProvider需要FSharp.Core 2.3.5

时间:2016-03-07 02:32:18

标签: ubuntu f# f#-data paket

我试图在XUbuntu上运行CsvProvider示例的标准示例。但是我收到一条错误消息,指出JsonProvider缺少Fsharp.Core 2.3.5的依赖项。所以,我尝试使用paket在本地安装它(我使用Atom和Ionide)。但它说该套餐并不存在。不知道该怎么做。

我尝试运行的代码:

#r "packages/FSharp.Data/lib/portable-net40+sl5+wp8+win8/FSharp.Data.dll"
open FSharp.Data

type Stocks = CsvProvider<"./data/MSFT.csv">

let msft = Stocks.Load("http://ichart.finance.yahoo.com/table.csv?s=MSFT")

// Look at the most recent row. Note the 'Date' property
// is of type 'DateTime' and 'Open' has a type 'decimal'
let firstRow = msft.Rows |> Seq.head
let lastDate = firstRow.Date
let lastOpen = firstRow.Open

// Print the prices in the HLOC format
for row in msft.Rows do
  printfn "HLOC: (%A, %A, %A, %A)" row.High row.Low row.Open row.Close

我得到的错误:

The type provider 'ProviderImplementation.JsonProvider' reported
an error: The type provider constructor has thrown an exception:
Could not load file or assembly 'FSharp.Core, Version=2.3.5.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies

我试图安装的nuget包:

source https://www.nuget.org/api/v2
nuget FAKE
nuget FSharp.Data
nuget FSharp.Core
nuget FSharp.Core.Open.FS30 2.3.5 //<- this is the line that fails.
运行sudo mono .paket/paket.exe install

时出现

错误消息

Paket failed with:
    Couldn't get package details for package
    FSharp.Core.Open.FS30 2.3.5 on https://www.nuget.org/api/v2.

我看到那应该是一个安装好的软件包

https://github.com/fsharp/fsharp/issues/165

0 个答案:

没有答案