zoukankan      html  css  js  c++  java
  • 在路径中有空格时,如何处理???

    经常在路径中有空格,就会出现错误,比如以下:

    conda create --prefix=D:Program Files (x86)pythonPython36-32 python=3.6

    在conda进行指定python环境时,由于Program Files (x86)含有空格,会出现以下错误:

    PackagesNotFoundError: The following packages are not available from current channels:
    
      - pythonpython36-32
      - files
    
    Current channels:
    
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
    
    To search for alternate channels that may provide the conda package you're
    looking for, navigate to
    
        https://anaconda.org
    
    and use the search bar at the top of the page.

    但是去掉空格就可以正常创建,所以时空格原因,这里的处理办法是:给路径加上双引号。如下:

    conda create --prefix="D:Program Files (x86)pythonPython36-32" python=3.6

    这时候就可以顺利执行了。

    PackagesNotFoundError: The following packages are not available from current channels:
      - pythonpython36-32  - files
    Current channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
    To search for alternate channels that may provide the conda package you'relooking for, navigate to
        https://anaconda.org
    and use the search bar at the top of the page.

  • 相关阅读:
    js数组的常见操作( push、pop、unshift、shift、splice、concat、 join)的用法
    js json对象与字符串转换
    js回调函数(callback)
    Array数组 [] 遍历方法
    65.rem布局详解(一图流)
    关于内存泄漏
    JS精粹知识点和我的解释
    再谈布局2-Flex布局
    input和button不同高 和 rem
    正则表达式学习
  • 原文地址:https://www.cnblogs.com/Jerry-home/p/9883241.html
Copyright © 2011-2022 走看看