1월, 2016의 게시물 표시

El Capitan(Mac OSX 10.11.1)にScrapyを設置する途中発生したエラーとその解決

ウェブクローラーScrapyの設置の途中以下のような問題が発生した。 Detected a distutils installed project ('six') which we cannot uninstall. The metadata provided by distutils does not contain a list of files which have been installed, so pip does not know which files to uninstall. 1. 少しググッタ結果pipのバージョンの問題だと言う意見があってアップグレードしてみた。 sudo -H pip install --upgrade pip まず、以前あった問題は解決されたけど別の問題が起こった。 Exception: Traceback (most recent call last):   File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main     status = self.run(options, args)   File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run     prefix=options.prefix_path,   File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 725, in install     requirement.uninstall(auto_confirm=True)   File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 752, in uninstall     paths_to_remove.remove(auto_confirm) ...

El Capitan(Mac OSX 10.11.1)에 Scrapy 설치중 발생한 에러와 해결책

웹 크롤러 Scrapy를 설치하는 중 아래와 같은 에러가 발생했다 Detected a distutils installed project ('six') which we cannot uninstall. The metadata provided by distutils does not contain a list of files which have been installed, so pip does not know which files to uninstall. 1. 약간의 구글링 결과 pip 버전의 문제라는 의견이 있어 업그레이드 해 봤다. sudo -H pip install --upgrade pip 우선 기존과 같은 문제는 사라졌지만 다른 문제가 발생했다. Exception: Traceback (most recent call last):   File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main     status = self.run(options, args)   File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run     prefix=options.prefix_path,   File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 725, in install     requirement.uninstall(auto_confirm=True)   File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 752, in uninstall     paths_to_remove.remove(auto_confirm) ...