Home > other >  After installing the Anaconda conda in CMD command to make mistakes
After installing the Anaconda conda in CMD command to make mistakes

Time:09-26

My Windows 7 64 - bit version 4.4 anaconda, after the installation the anaconda conda command error under CMD, tips are as follows:

Traceback (the most recent call last) :
The File "D: \ Anaconda2 \ Scripts \ conda - script. Py", line 5, in & lt; module>
Sys. Exit (conda. Cli. The main ())
. A string (middle)
The File "D: \ Anaconda2 \ lib \ ntpath py", line 85, join in
Result_path=result_path + p_path
UnicodeDecodeError: 'ASCII' codec can 't decode byte 0 xb9 in position 1: ordinal
Not in the range (128)

Could you tell me how to solve the above mistakes the?

Trouble you!

CodePudding user response:

A visual path contains your Chinese path

CodePudding user response:

Anaconda directly is installed under the D disk, without any intermediate directory, there will be no more Chinese directory may

CodePudding user response:

refer to the second floor xiangyue19932008 response:
Anaconda is installed directly on the D disk, without any intermediate directory, there will be no more Chinese directory may ah

What are you specific execution of orders?

CodePudding user response:

Is to perform "conda" instruction, and any associated with conda instructions such as "conda update", "conda list" can quote us such a mistake

CodePudding user response:

Problem has been solved, in conda - script. Py inside plug the three lines of code below:

If sys. Getdefaultencoding ()! :='GBK'
Reload (sys)
Sys. Setdefaultencoding (' GBK ')

CodePudding user response:

reference 5 floor xiangyue19932008 reply:
problem has been solved, in conda - script. Py inside plug the three lines of code below:

If sys. Getdefaultencoding ()! :='GBK'
Reload (sys)
Sys. Setdefaultencoding (' GBK ')

Just a little reminder, coding problems may arise after you do this,

CodePudding user response:

I almost had the same problem, ask if there is any better solution

CodePudding user response:

The building Lord, I tried your method, I found no,

CodePudding user response:

Encountered problems in the installation environment, is there not uninstall previous python environment, conflict?

CodePudding user response:

CMD
at the beginning of the inputCHCP 936
My console instead of the default utf-8 by me, like this one

CodePudding user response:

references 9 f qq_31346267 response:
encountered problems in the installation environment, is there not uninstall previous python environment, conflict?

Right, delete the previous python environment,

CodePudding user response:

Hello, I am the second download anaconda conda cannot use, before the anaconda is direct delete folders, excuse me what method

CodePudding user response:

To search after selling: see if your computer administrator name in Chinese first, and then see if install Anaconda2, if it's just...
The solution:
1. Replace the anaconda version of 3, 3 won't appear this problem
2. Adjust the computer administrator's name in English, pay attention to not only change the name alone, need to let the file directory name change, has the following methods
Adjust the cache location; A new English name of the account; Modify the registry
Specific can search thought zhihu bosses about computer user name change for the answer in English
  • Related