Pip安装“python”设置.pyegg_info“失败,错误代码为1

2024-04-26 10:45:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试着安装刮痧。我已经安装了python3.6,并且运行在Windows上。在

我试过了:

py -3.5-32 -m pip install Scrappy

但是,得到了以下结果:

^{pr2}$

这是因为setuptools?所以我升级了它,然后尝试安装scrapy,但得到了同样的错误消息。在

有人知道为什么会这样吗?在

更新,尝试安装scray时出错:

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\


Tags: installpipnamepybuildlocalcodeerror