安装Anaconda3后遇到了一些问题。 我的操作系统是Win 10; Anaconda版本是Anaconda3-5.2.0-Windows-x86_64; 安装位置是:C:\ Anaconda 当我输入“ conda”,“ python”,“ pip”或“ --version”时,它们可以正常工作。 但是如果我输入“ conda list”或“ conda update conda”,则会出现以下错误:
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\conda\cli\main.py", line 97, in main
from ..activate import main as activator_main
File "C:\Anaconda\lib\site-packages\conda\activate.py", line 12, in <module>
context.__init__() # oOn import, context does not include SEARCH_PATH. This line fixes that.
.
.
.
File "C:\Anaconda\lib\site-packages\ruamel_yaml\reader.py", line 241, in update
self.check_printable(data)
File "C:\Anaconda\lib\site-packages\ruamel_yaml\reader.py", line 208, in check_printable
'unicode', "special characters are not allowed")
ruamel_yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
in "C:\Users\martin\.condarc", position 0
我认为原因可能与unicode有关,我试图在google上找到答案并导致堆栈溢出,但不幸的是,我仍然无法解决它。
答案 0 :(得分:0)
问题已解决,.condarc文件出现一些unicode错误,我删除它并创建一个新文件后,一切都很好。