0
當我使用「PIP安裝」,安裝scrapy爲Windows上的Python,我要求這個反饋:不能安裝裝配Scrapy /雙絞線
Exception:
Traceback (most recent call last):
File "c:\users\limin\appdata\local\programs\python\python36\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 0xb6 in position 30: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\limin\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\limin\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\users\limin\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\users\limin\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install
spinner=spinner,
File "c:\users\limin\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\limin\appdata\local\programs\python\python36\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 0xb6 in position 30: invalid start byte
我知道這可能是編碼的問題,但我不知道如何解決它。 誰能幫幫我? 謝謝。
也許你可以使用[anaconda](https://docs.continuum.io/anaconda/)。 從scrapy [文檔](https://doc.scrapy.org/en/latest/intro/install.html#anaconda): _使用Anaconda是使用virtualenv和使用pip安裝的替代方案。 對於Windows用戶,或者如果您通過pip安裝時遇到問題,這是安裝Scrapy的推薦方式._ – vold