我在Windows 8上使用Pycharm来编写python代码
我正在尝试添加ncclient
库,我收到以下错误:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 4336: character maps to <undefined>
Collecting ncclient
Using cached ncclient-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\...\AppData\Local\Temp\pycharm-packaging\ncclient\setup.py", line 32, in <module>
long_description = file.read()
File "C:\Program Files (x86)\Python35-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 4336: character maps to <undefined>
Command "python setup.py egg_info" failed with error code 1 in C:\Users\...\AppData\Local\Temp\pycharm-packaging\ncclient\
任何人都可以提供帮助吗?
答案 0 :(得分:2)
您没有附加正在运行的命令。我假设在安装软件包时发生此错误,而不是导入它。
问题在于包中的文件README.rst,其中包含未在cp1252中映射的字符。要解决此问题,您需要:
运行安装文件:
setup.py install