【问题标题】:ERROR: "activate does not accept more than one argument:" (while activating env using condo)错误:“activate 不接受多个参数:”(使用 condo 激活 env 时)
【发布时间】:2020-02-25 07:37:59
【问题描述】:

我在没有 conda 的终端上玩过 VENV,但现在我也在尝试使用 conda。我安装了 mini-conda 并创建了 v-env,现在我正在尝试通过此代码激活 v-env .....

(base) J:\jaimin (E)\Programming Practice\Machine Learning and Data Science\Sample Project\env>conda activate J:\jaimin (E)\Programming Practice\Machine Learning and Data Science\Sample Project\env

conda 显示这个错误.....

activate does not accept more than one argument:
['J:\\jaimin', '(E)\\Programming', 'Practice\\Machine', 'Learning', 'and', 'Data', 'Science\\Sample', 'Project\\env']

【问题讨论】:

    标签: python virtualenv conda


    【解决方案1】:

    当使用带空格的路径名时,您需要将参数括在引号中:

    conda activate "J:\jaimin (E)\Programming Practice\Machine Learning and Data Science\Sample Project\env"
    

    不过,从长远来看,不使用空格会更容易。 :)

    【讨论】:

      【解决方案2】:

      有同样的问题。最后 - 最好使用不带空格的环境名称。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-10-26
        • 1970-01-01
        • 1970-01-01
        • 2018-05-18
        • 2020-12-13
        • 1970-01-01
        • 2013-03-26
        • 1970-01-01
        相关资源
        最近更新 更多