蝗虫安装Visual Studio失败,退出状态为1181

2024-06-23 19:33:40 发布

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

我正在尝试安装locust,但是当我运行命令pip install locust时,我想Visual Studio出现了一个错误。 我用的是Windows10

这就是错误:

 LINK : fatal error LNK1181: impossible to open the entry file 'ws2_32.lib'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
 ----------------------------------------
  ERROR: Failed building wheel for gevent
  Running setup.py clean for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly

我在网上搜索过这个问题,但没有找到任何解决办法

谢谢你们的帮助


Tags: installpipto命令buildfor错误gevent

热门问题