Anaconda prompt loading error: The input line is too long

前端 未结 3 1104
陌清茗
陌清茗 2021-02-06 13:05

I installed Anaconda 64 python 2.7 on Windows 7 64-bit version. After installation, the anaconda prompt can start with no problem. But whenever I restart/shutdown and restart th

3条回答
  •  迷失自我
    2021-02-06 13:33

    I found that if you change from using single quotes for the CALL SET on the following:

    REM Make sure that root's Scripts dir is on PATH, for sake of keeping activate/deactivate available.
    CALL SET "PATH_NO_SCRIPTS=%%PATH:%SCRIPT_PATH%=%%"
    IF "%PATH_NO_SCRIPTS%"=="%PATH%" SET "PATH=%PATH%;%SCRIPT_PATH%"
    

    to:

    REM Make sure that root's Scripts dir is on PATH, for sake of keeping 
    activate/deactivate available.
    CALL SET ""PATH_NO_SCRIPTS=%%PATH:%SCRIPT_PATH%=%%""
    IF "%PATH_NO_SCRIPTS%"=="%PATH%" SET "PATH=%PATH%;%SCRIPT_PATH%"
    

    Solves this issue for me. This is based upon this answer

提交回复
热议问题