Reputation: 799
I am trying to install Scrappy. I have Python 3.6 installed and am on Windows.
I have tried this:
py -3.5-32 -m pip install Scrappy
However, got the following:
Collecting Scrappy
Using cached Scrappy-0.3.0.alpha.4.tar.gz
Collecting guessit (from Scrappy)
Using cached guessit-2.1.2.tar.gz
Collecting tvdb_api (from Scrappy)
Using cached tvdb_api-1.10.tar.gz
Collecting hachoir-metadata (from Scrappy)
Using cached hachoir-metadata-1.3.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER~1.NAME\AppData\Local\Temp\pip-build-1tu2hkos\hachoir-metadata\setup.py", line 65
except OSError, err:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\USER~1.NAME\AppData\Local\Temp\pip-build-1tu2hkos\hachoir-metadata\
Which is because of setuptools
? So I upgraded it and then tried to install Scrappy but got the same error message.
Anybody know why this is happening?
Update, error when attempting to install Scrapy:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
---------------------------------------- Command "C:\Users\user.name\AppData\Local\Programs\Python\Python35-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\USER~1.NAME\AppData\Local\Temp\pip-build-j6ijek3o\Twisted\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\USER~1.NAME\AppData\Local\Temp\pip-bmjl_u_2-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\USER~1.NAME\AppData\Local\Temp\pip-build-j6ijek3o\Twisted\
Upvotes: 1
Views: 4359