pip install scrapy报错
程序员文章站
2022-05-29 15:41:57
...
环境:python3.6.3
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 "f:\software\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\fendo\\AppData\\Local\\Temp\\pip-build-22wlv_wh\\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\fendo\AppData\Local\Temp\pip-fywvs_xm-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\29955\AppData\Local\Temp\pip-build-22wlv_wh\Twisted\
解决方法:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
找到对应的Twisted版本 cp后面是python版本,amd64代表64位
pip install d:Twisted-18.9.0-cp36-cp36m-win_amd64.whl
最后
pip install scrapy
成功
上一篇: Java基础知识点汇总
下一篇: HTML基础知识点汇总
推荐阅读
-
vue踩坑记-在项目中安装依赖模块npm install报错
-
基于windows下pip安装python模块时报错总结
-
解决Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-f8IeEI/MYSQL-python/
-
win8安装python环境和pip、easy_install工具
-
pip install browsercookie报错问题
-
Pycharm下载pyinstaller报错:You should consider upgrading via the 'python -m pip install --upgrade pip' command的解决方法
-
Pycharm下载pyinstaller报错:You should consider upgrading via the 'python -m pip install --upgrade pip' command的解决方法
-
pip install pyspider失败的解决办法
-
Windows环境下使用pip install安装lxml库
-
Ubuntu 执行 apt-get install ××× 报错