简体   繁体   中英

Anaconda error after install on Windows

I want to install Anaconda on my x64 Windows machine, and I downloaded the Python 2.7 version 64-bit installer. The installation process looks good.

Then I installed pip with choco and installed several packages like zbar , however, when I want to try to launch Anaconda, I entered conda in Powershell, this is what I got:

Traceback (most recent call last):
  File "C:\Users\Ruiyang\Anaconda2\Scripts\conda-script.py", line 3, in <module>
    import conda.cli
ImportError: No module named conda.cli

Does anyone knows how to fix this?

add anaconda's bin directory to path. set path=whatever\\anaconda\\bin;path;

This issue is related to the path variable setting. Quoting from another SO post :

fire up your interpreter and add this line: export PATH=/Users/add your username here/anaconda/bin:$PATH

Now type python into the interpreter and you will see Anaconda 1.8.0 or whatever version you have. You will have to do this each time you start a new interpreter.

Also, note that this might occur when the user name in the path on windows contains a space character. Taken from here .

Though @devautor's method doesn't work for me, a comment in his reference shows me the correct answer:

Unset both PYTHONPATH and PYTHONHOME, then my problem is solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM