Quick question regarding the version of python that's being used by scrapy. I installed scrapy from the AUR
repository on archlinux and it defaults on using python 2.7
. Scrapy has support forpython 3.3+
. Does anyone know how to force it to use 3.3 without uninstalling 2.7, can't find anything on it on the internet.
Use virtualenv
. You can install it with pip
.
What I would normally do is go to the project folder, and create a virtual environment (envname
) with the following command:
virtualenv -p python3 envname
Enable it source envname/bin/activate
and install everything you want. Now you have a Python3 environment (I think you need to install Scrapy again for the current environment).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With