我一直在阅读.sav文件。所以,我需要使用pip安装savReaderWriter。我跑的时候
pip install savReaderWriter
在Windows 10上,我收到以下错误:
Exception:
Traceback (most recent call last):
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\compat\__init__.py", line 73, in console_to_str
return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 39:
invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\fatihshen\appdata\local\programs\python\python36-
32\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\req\req_install.py", line 878, in install
spinner=spinner,
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\utils\__init__.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\fatihshen\appdata\local\programs\python\python36-32\lib\site-
packages\pip\compat\__init__.py", line 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 39:
invalid continuation byte
我使用Python 3.6.4和pip 9.0.1。
任何人都知道发生了什么事?安装其他软件包时我没有遇到这样的错误。这真的很奇怪。我很感激你的帮助。
答案 0 :(得分:0)
好的,终于解决了这个问题。这绝对是pip 9.0.1的一个bug。所以,我安装了新版本(pip-10.0.0.dev0)。但请记住,它正在开发中。
你走了:
python -m pip install -U https://github.com/pypa/pip/archive/master.zip
重新运行后
pip install savReaderWriter
我不再犯这个错误。快乐结束:)