LookupError:未知编码:Anaconda中的65001

时间:2018-10-01 07:14:44

标签: python-3.x python-2.7 python-requests

enter image description here

我如何解决此解决方案。我是蟒蛇上蟒蛇的新手

版本 Jupyter 5.5.0 视窗10 64位 水蟒5.2

1 个答案:

答案 0 :(得分:0)

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\cli\main.py", line 105, in main
        return activator_main()
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\activate.py", line 838, in main
        print(activator.execute(), end='')
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\activate.py", line 110, in execute
        return getattr(self, self.command)()
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\activate.py", line 88, in activate
        return self._finalize(self._yield_commands(builder_result), self.tempfile_extension)
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\activate.py", line 78, in _finalize
        tf.write(ensure_binary(self.command_join.join(commands)))
      File "C:\Users\oztur\Anaconda3\lib\site-packages\conda\activate.py", line 536, in ensure_binary
        return value.encode(encoding)
    LookupError: unknown encoding: 65001

在第536行的activate.py中,我这样做return value.encode(encoding="utf-8")对我有用。