Reputation: 99
I am getting started with Scrapy, but I have two problems with installation on Linux Mint 17.2 (Ubuntu based version).
pip install
scrapy
and sudo apt-get install scrapy
scrapy startproject tutorial
it gives me error /usr/bin: No such file or directory
.I have tried to uninstall and reinstall many times but still doesn't work.
Upvotes: 2
Views: 96
Reputation: 6276
The installation guide tells not to use the packages provided by Ubuntu:
Don’t use the python-scrapy package provided by Ubuntu, they are typically too old and slow to catch up with latest Scrapy.
Instead, use the official Ubuntu Packages, which already solve all dependencies for you and are continuously updated with the latest bug fixes.
As mentioned you should install it using the Ubuntu packages on this page instead.
Besides the previous steps, I also had to install service-identity
:
sudo pip install service-identity
Upvotes: 1
Reputation: 935
Both commands pip install scrapy
and sudo apt-get install scrapy
will install Scrapy on your computer, but the versions may be different. The pip option installs the latest version for Scrapy 1.0, while the one in your repositories its probably outdated.
If anyway you want to install the package from the repositories and still keep it updated, you can add the Scrapy repository:
http://doc.scrapy.org/en/1.0/topics/ubuntu.html
echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt-sources.list.d/scrapy.list
sudo apt-get update && sudo apt-get install scrapy
Souce: http://doc.scrapy.org/en/1.0/topics/ubuntu.html
Depending on the way you install Scrapy, the binaries folder for the installation might be different. In my case I have it in /usr/local/bin
.
Display your PATH variable with echo "$PATH"
, and check if the folder with the Scrapy binary is included.
You can add more directories to the variable with export PATH=$PATH:/path/to/dir
Upvotes: 1