0

実行するpip install Scrapyと、すべて正常にダウンロードされたように見えますが、インストールは最終的に失敗します。

パーミッションに何らかの問題がありますか? 私は初心者なので、どんな助けでも大歓迎です!

端末出力の要約:

...    

running install_egg_info

running egg_info

writing requirements to Scrapy.egg-info/requires.txt

writing Scrapy.egg-info/PKG-INFO

writing top-level names to Scrapy.egg-info/top_level.txt

writing dependency_links to Scrapy.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found


reading manifest file 'Scrapy.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

no previously-included directories found matching 'docs/build'

writing manifest file 'Scrapy.egg-info/SOURCES.txt'

Copying Scrapy.egg-info to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.16.3-py2.7.egg-info

running install_scripts

copying build/scripts-2.7/scrapy -> /Library/Frameworks/Python.framework/Versions/2.7/bin

error: /Library/Frameworks/Python.framework/Versions/2.7/bin/scrapy: Permission denied

----------------------------------------
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/Users/pavelfage/build/Scrapy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/x6/wf5kq24j109dnkhgjcs822ym0000gn/T/pip-QgV9nv-record/install-record.txt failed with error code 1
4

1 に答える 1

3

/Library/Frameworks/* に書き込むには、次を使用しますsudo pip install scrapy

仮想環境で行う場合は、まず環境を起動してからインストールしてください

 $ . /path/to/venv/bin/activate
 $ pip install scrapy
于 2013-01-10T18:58:32.997 に答える