2
votes

While I am trying to install scrapy on my Mac Os :

pip install Scrapy

I get an error

Uninstalling zope.interface-4.1.1: Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope/init.py', '/private/var/folders/h6/sh206j3129l3bvkbccnqp3xm0000gn/T/pip-uninstall-I2xi1I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope/init.py', "[Errno 1] Operation not permitted: '/private/var/folders/h6/sh206j3129l3bvkbccnqp3xm0000gn/T/pip-uninstall-I2xi1I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope/init.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope/init.pyc', '/private/var/folders/h6/sh206j3129l3bvkbccnqp3xm0000gn/T/pip-uninstall-......]

1
pip install scrapy --user?hoefling
i entered this command , i don't see the error anymore ,However the scrapy is not installed yet : scrapy startproject -bash: scrapy: command not foundzahra
scrapy: command not foundzahra
and sudo install scrappy result is : The directory '/Users/zahra/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/zahra/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.zahra
Do not invoke sudo, it won't bring you anything. The only issue left is to determine the correct path to the scrapy binary. Run pip show -f scrapy | grep Location and pip show -f scrapy | grep bin/scrapy, what do you get?hoefling

1 Answers

0
votes

Try:

sudo pip install Scrapy --upgrade --ignore-installed