Cannot import name 'User' from 'Locust' library
问题 I'm quite new to Locust , just starter tinkering with it a couple of days ago. Previously I followed someone else's example which was using: class WebsiteUser(HttpLocust): # Do stuff But after reading more documentation I tried to use the User class and now I'm getting errors when I try to import the said class: I just copy/pasted the example from the docs to make sure I didn't have any typos: from locust import User, TaskSet, task, between class MyTaskSet(TaskSet): @task def my_task(self):