无法激活环境

时间:2019-04-25 22:14:46

标签: python anaconda conda

我一直在尝试使用anaconda提示符激活环境,但一直出现此错误:

Traceback (most recent call last):
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\cli\main.py", line 105, in main
    return activator_main()
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\activate.py", line 838, in main
    print(activator.execute(), end='')
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\activate.py", line 110, in execute
    return getattr(self, self.command)()
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\activate.py", line 88, in activate
    return self._finalize(self._yield_commands(builder_result), self.tempfile_extension)
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\activate.py", line 78, in _finalize
    tf.write(ensure_binary(self.command_join.join(commands)))
  File "C:\Users\lihi\anaconda\lib\site-packages\conda\activate.py", line 536, in ensure_binary
    return value.encode(encoding)
  File "C:\Users\lihi\anaconda\lib\encodings\cp1255.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 859-862: character maps to <undefined>

我知道某个地方有一个有问题的字符,但不知道在哪里查找或如何解决。

0 个答案:

没有答案