Here's how I solved it for my environment, with the Scrapy package in a virtual environment outside the project directory:
1) Create a simlink for your cmdline.py from within the project, for example:
ln -s ../venv/lib/python3.4/site-packages/scrapy/cmdline.py cmdline.py
2) Update the project so that it can be seen, and then set it as the main module in the debug configuration.
3) On the “Arguments” tab in the debugging configuration, where “Working directory” is indicated, select “Other”, and then enter or switch to using the “Scrapy” buttons in your project.
source share