2017-04-14 118 views
-1

我發現有關scrapy,這是一個偉大的工具刮,所以我試圖安裝scrapy在我的機器上,但是當我試圖做pip install scrapy它安裝了一段時間,扔我這個錯誤..錯誤,同時安裝Scrapy錯誤:需要Microsoft Visual C++ 14.0

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 

我試圖在虛擬環境中安裝它,但問題仍然存在。

編輯: 這是我的錯誤後得到了..

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 "d:\pycharmprojects\environments\scrapyenv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\User\\AppData\\Local\\Temp\\pip-build-arbeqlly\\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\AppData\Local\Temp\pip-jdj93131-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\pycharmprojects\environments\scrapyenv\include\site\python3.5\Twisted" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-build-arbeqlly\Twisted\ 

任何幫助嗎?

+3

你嘗試訪問的URL建議安裝這些工具解決了這個問題? – eLRuLL

+0

是的,我做過了,但問題是scrapy與visual studio有什麼關係 –

+0

我認爲scrapy正在使用底層C/C++庫來提高速度。我曾經想過,如果你通過輪子安裝,Windows將被預先打包,但我可能會誤解。 (另請注意,對於Mac用戶,http://stackoverflow.com/questions/32350375/error-code-1-installing-scrapy#32419233有類似的問題) – Foon

回答

2

but the question is what does scrapy has to do with visual studio

一些python模塊需要C/C++編譯器來構建。這就是爲什麼你需要Visual Studio。

Scrapy Installation Guide報價:

some binary packages that Scrapy depends on (like Twisted, lxml and pyOpenSSL) require a compiler available to install, and fail if you don’t have Visual Studio installed.

+0

但是當我做'lxml'這不是問題 –

相關問題