安装FwiFlow包时出现错误

不知问题如何解决???

  1. versioninfo():
    Julia Version 1.3.1
    Commit 2d5741174c (2019-12-30 21:36 UTC)
    Platform Info:
    OS: Windows (x86_64-w64-mingw32)
    CPU: 11th Gen Intel(R) Core™ i5-11400F @ 2.60GHz
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-6.0.1 (ORCJIT, cannonlake)
  2. Status C:\Users\dell\.julia\environments\v1.3\Project.toml
    [07b341a0] ADCME v0.7.3
    [631607c0] CMake v1.2.0
    [8f4d0f93] Conda v1.7.0
    [39dd38d3] Dierckx v0.4.2
    [587475ba] Flux v0.11.1
    [a6a960b4] FwiFlow v0.3.1 #master (https://github.com/lidongzh/FwiFlow.jl)
    [f67ccb44] HDF5 v0.13.7
    [7073ff75] IJulia v1.23.3
    [23992714] MAT v0.8.1
    [e0fc9d43] PkgMirrors v1.3.0
    [91a5bcdd] Plots v1.6.12
    [438e738f] PyCall v1.94.1
    [d330b81b] PyPlot v2.11.0
    [8dfed614] Test

应该可以直接用 python 相关的库

[ Info: Install Boost
ERROR: LoadError: failed process: Process('C:\Users\dell\.julia\adcme\Scripts\conda' install libboost==1.73.0=h3ff78a5_11, ProcessExited(1)) [1]

这是在用test包时,出现的错误,我用
conda install libboost==1.73.0=h3ff78a5_11
安装此包时候,下载不到对应的包,不知道该怎么解决???

anaconda的仓库里 https://anaconda.org/anaconda/libboost/files?version=1.73.0 可以看到1.73.0=h3ff78a5_11对应的是linux的包,所以windows是装不上的
你看看把这两行 FwiFlow.jl/CMakeLists.txt at master · lidongzh/FwiFlow.jl · GitHub
FwiFlow.jl/build.jl at master · lidongzh/FwiFlow.jl · GitHub 里对应的版本号改成windows合法的行不

改之后编译出来了!!!!
但是,
Test了一下,报错情况如下:(按如下情况安装Test之后,还是反复报这个错误Package Test not found in current path:

  • Run `import Pkg; Pkg.add(“Test”),
    不知道会不会是FwiFlow这个包不能在WINDOWS环境下使用???)
    ERROR: LoadError: ArgumentError: Package Test not found in current path:
  • Run import Pkg; Pkg.add("Test") to install the Test package.

Stacktrace:
[1] require(::Module, ::Symbol) at .\loading.jl:887
[2] include at .\boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1105
[4] include(::Module, ::String) at .\Base.jl:31
[5] include(::String) at .\client.jl:424
[6] top-level scope at none:6
in expression starting at C:\Users\dell.julia\packages\FwiFlow\aD2oZ\test\runtests.jl:2
ERROR: Package FwiFlow errored during testing

Test不是在标准库里吗
你是否修改了julia的配置,还有,怎么测试的,过程建议具体点

在下载FwiFlow失败后,C:\Users\dell.julia\packages\FwiFlow中修改了您的建议,
随后进行test FwiFlow检验是否安装正确。
(v1.3) pkg> test FwiFlow
Testing FwiFlow
Status C:\Users\dell\AppData\Local\Temp\jl_9TeXRg\Manifest.toml
[07b341a0] ADCME v0.7.3
[621f4979] AbstractFFTs v0.5.0
[0dad84c5] ArgTools v1.1.1
[56f22d72] Artifacts v1.3.0
[9e28174c] BinDeps v1.0.2
[b99e7846] BinaryProvider v0.5.10
[a74b3585] Blosc v0.7.3
[0b7ba130] Blosc_jll v1.21.0+0
[e1450e63] BufferedStreams v1.0.0
[631607c0] CMake v1.2.0
[d360d2e6] ChainRulesCore v0.9.45
[944b1d66] CodecZlib v0.7.0
[3da002f7] ColorTypes v0.10.12
[5ae59095] Colors v0.12.8
[34da2185] Compat v3.46.0
[e66e0078] CompilerSupportLibraries_jll v0.3.4+0
[8f4d0f93] Conda v1.7.0
[864edb3b] DataStructures v0.17.20
[39dd38d3] Dierckx v0.4.2
[ffbed154] DocStringExtensions v0.8.6
[f43a241f] Downloads v1.6.0
[7a1cc6ca] FFTW v1.3.0
[f5851436] FFTW_jll v3.3.9+8
[53c48c17] FixedPointNumbers v0.8.4
[a6a960b4] FwiFlow v0.3.1 #master (GitHub - lidongzh/FwiFlow.jl: Elastic Full Waveform Inversion for Subsurface Flow Problems Using Intrusive Automatic Differentiation)
[f67ccb44] HDF5 v0.13.7
[0234f1f7] HDF5_jll v1.10.5+7
[1d5cc7b8] IntelOpenMP_jll v2018.0.3+2
[92d709cd] IrrationalConstants v0.1.1
[692b3bcd] JLLWrappers v1.4.1
[682c06a0] JSON v0.21.3
[b964fa9f] LaTeXStrings v1.3.0
[b27032c2] LibCURL v0.6.3
[deac9b47] LibCURL_jll v7.70.0+2
[29816b5a] LibSSH2_jll v1.9.0+3
[2ab3a3ac] LogExpFunctions v0.3.0
[5ced341a] Lz4_jll v1.9.2+2
[23992714] MAT v0.8.1
[856f044c] MKL_jll v2020.2.254+0
[1914dd2f] MacroTools v0.5.9
[c8ffd9c3] MbedTLS_jll v2.16.8+1
[14a3606d] MozillaCACerts_jll v2022.3.29+0
[ca575930] NetworkOptions v1.2.0
[05823500] OpenLibm_jll v0.7.1+0
[efe28fd5] OpenSpecFun_jll v0.5.3+4
[bac558e1] OrderedCollections v1.4.1
[d96e819e] Parameters v0.12.3
[69de0a69] Parsers v2.4.0
[21216c6a] Preferences v1.3.0
[438e738f] PyCall v1.94.1
[d330b81b] PyPlot v2.11.0
[189a3867] Reexport v0.2.0
[276daf66] SpecialFunctions v1.8.3
[fa267f1f] TOML v1.0.3
[3bb67fe8] TranscodingStreams v0.9.9
[30578b45] URIParser v0.4.1
[3a884ed6] UnPack v1.0.2
[81def892] VersionParsing v1.3.0
[83775a58] Zlib_jll v1.2.11+18
[3161d3a3] Zstd_jll v1.4.8+0
[8e850ede] nghttp2_jll v1.40.0+2
[2a0f44e3] Base64 [@stdlib/Base64]
[ade2ca70] Dates [@stdlib/Dates]
[8bb1440f] DelimitedFiles [@stdlib/DelimitedFiles]
[8ba89e20] Distributed [@stdlib/Distributed]
[7b1f6079] FileWatching [@stdlib/FileWatching]
[b77e0a4c] InteractiveUtils [@stdlib/InteractiveUtils]
[76f85450] LibGit2 [@stdlib/LibGit2]
[8f399da3] Libdl [@stdlib/Libdl]
[37e2e46d] LinearAlgebra [@stdlib/LinearAlgebra]
[56ddb016] Logging [@stdlib/Logging]
[d6f4376e] Markdown [@stdlib/Markdown]
[a63ad114] Mmap [@stdlib/Mmap]
[44cfe95a] Pkg [@stdlib/Pkg]
[de0858da] Printf [@stdlib/Printf]
[3fa0cd96] REPL [@stdlib/REPL]
[9a3f8284] Random [@stdlib/Random]
[ea8e919c] SHA [@stdlib/SHA]
[9e88b42a] Serialization [@stdlib/Serialization]
[1a1011a3] SharedArrays [@stdlib/SharedArrays]
[6462fe0b] Sockets [@stdlib/Sockets]
[2f01184e] SparseArrays [@stdlib/SparseArrays]
[10745b16] Statistics [@stdlib/Statistics]
[8dfed614] Test [@stdlib/Test]
[cf7118a7] UUIDs [@stdlib/UUIDs]
[4ec0a83e] Unicode [@stdlib/Unicode]
ERROR: LoadError: ArgumentError: Package Test not found in current path:

  • Run import Pkg; Pkg.add("Test") to install the Test package.

Stacktrace:
[1] require(::Module, ::Symbol) at .\loading.jl:887
[2] include at .\boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1105
[4] include(::Module, ::String) at .\Base.jl:31
[5] include(::String) at .\client.jl:424
[6] top-level scope at none:6
in expression starting at C:\Users\dell.julia\packages\FwiFlow\aD2oZ\test\runtests.jl:2
ERROR: Package FwiFlow errored during testing

如果能在repl里正常using Test,就运行测试时不行,那我确实不知道啥原因了

谢谢您的解答,是能正常using的