小编Whi*_*eok的帖子

构建 docker:opt/conda/bin/conda 未找到

我对docker完全陌生,我需要在docker环境中运行代码。

我在构建 Dockerfile 时遇到错误:

我通过 hyper-V 运行 Ubuntu 20.04,当我构建 Dockerfile 时,我收到以下消息:

Step 4/20 : RUN curl -o ~/miniconda.sh -O  https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh  &&      chmod +x ~/miniconda.sh &&      ~/miniconda.sh -b -p /opt/conda &&      rm ~/miniconda.sh &&      /opt/conda/bin/conda install numpy pyyaml scipy ipython mkl &&      /opt/conda/bin/conda install -c soumith magma-cuda90 &&      /opt/conda/bin/conda clean -ya <br />
 ---> Running in 9758f4fe60a4 <br />
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current 

                                 Dload  Upload   Total   Spent    Left  Speed 
  0     0    0     0 …
Run Code Online (Sandbox Code Playgroud)

linux docker

3
推荐指数
1
解决办法
3734
查看次数

朱莉娅 UndefVarError: unshift! 没有定义的

我使用 julia 1.4,并运行以下代码:

using PyCall
using JLD
using ArgParse
using Pandas
@pyimport networkx as nx
@pyimport scipy.sparse.csgraph as csg
@pyimport numpy as np

unshift!(PyVector(pyimport("sys")["path"]), "")
# unshift!(PyVector(pyimport("sys")["path"]), "..")
unshift!(PyVector(pyimport("sys")["path"]), "combinatorial")
@pyimport utils.load_graph as lg
@pyimport utils.distortions as dis
@pyimport graph_util as gu
....
Run Code Online (Sandbox Code Playgroud)

当我运行此代码时,出现以下错误:

 ERROR: LoadError: UndefVarError: unshift! not defined
Stacktrace:
 [1] top-level scope at /root/hyperbolics/combinatorial/comb.jl:9
 [2] include(::Module, ::String) at ./Base.jl:377
 [3] exec_options(::Base.JLOptions) at ./client.jl:288
 [4] _start() at ./client.jl:484
in expression starting at /root/hyperbolics/combinatorial/comb.jl:9
Run Code Online (Sandbox Code Playgroud)

当我搜索文件时,unshift!是 julia 1.4 中的现有函数,所以我不明白为什么会发生此错误。我是朱莉娅的新手,请帮忙。

python julia

3
推荐指数
1
解决办法
383
查看次数

标签 统计

docker ×1

julia ×1

linux ×1

python ×1