我的公司使用CYCLANCE,而CYCLANCEProtect阻止我运行Pkg.build()。有没有可能停止Julia在Windows7上使用Powershell,转而使用cmd?
下面是一个示例:
julia> Pkg.build("Gumbo")
INFO: Building Gumbo
CylancePROTECT Script Control has blocked access to this PowerShell script.
CylancePROTECT Script Control has blocked access to this PowerShell script.
====================================================[ ERROR: Gumbo ]=======发布于 2018-03-06 04:05:29
你可以尝试使用windows上也有的cURL下载(这里有一些installation instructions)。Julia允许通过定义具有相同名称的函数来覆盖下载函数:
function Base.download(url::AbstractString, filename::AbstractString)
run(`curl -L -f -o $filename $url`)
filename
end一旦将这段代码粘贴到julia REPL中,julia就应该使用这个cURL下载函数(而不是PowerShell)。如果你想永久保存这段代码,你可以将这段代码放在一个名为.juliarc.jl的文件中(位于主目录中,即homedir()的输出)。
https://stackoverflow.com/questions/49061971
复制相似问题