0

I'm trying to install locust but when I run the command pip install locust, I have an error with Visual Studio I think. I'm using Windows 10.

This is the error :

 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

I've searched this problem on the web but I didn't find any solution.

Thanks for your help guys

Fizik26
  • 753
  • 2
  • 10
  • 25
  • Which Python version are you running? What happens when you try to install it manually in a virtual environment? E.g. using `$ virtualenv foobar`, `$ source foobar/bin/activate` and `(foobar) $ pip install locust`? – yvesonline Jan 20 '20 at 08:34
  • Hey, I'm on Windows and I'm using python 3.7.6 – Fizik26 Jan 20 '20 at 08:38
  • Hi! Have a look at https://stackoverflow.com/questions/43858836/python-installing-clarifai-vs14-0-link-exe-failed-with-exit-status-1158 and see if that can help! – Cyberwiz Jan 20 '20 at 09:59
  • Unfortunately it's the same issue :'( – Fizik26 Jan 20 '20 at 11:20
  • I dont understand what you mean. Do you mean you tried the solution and it didnt help? – Cyberwiz Jan 21 '20 at 08:02
  • Exactly the problem stay the same and the solution didn't work for me – Fizik26 Jan 21 '20 at 08:58
  • ok, that is too bad... Maybe try reinstalling VS BuildTools or something? The issue is unlikely to be specific to locust... – Cyberwiz Jan 22 '20 at 12:05
  • I have reinstalled Python, Build Tools, but I still have the issue :( – Fizik26 Jan 22 '20 at 15:02

0 Answers0