I want to allow multiple users to manipulate the same virtual environment. What happens if multiple processes try to install/update/delete the same package using pip? Should I use file locking?
Here is the situation. There is a web app which can have multiple admins. Admin A and B login and see an update is available. They both click on the update button. A request is sent to the server in order to update the app's package. Now what happens?
pipand how, and what the desired end results are. Are the file system manipulations such as runningpip installorpip uninstallbeing performed by a process, like a Flask or Django server, or through the shell, such as multiple users logged into the same server using the command line? This question is too vague to answer as-is. Also, please indicate why having multiple users controlpipin the same environment is necessary.pipdoes not break during concurrent operations: Would the result be desirable? If user A updates package X while user B deletes package X, at least one of them will find the packages in an undesirable state.pipdoes? Retrofitting such details can really mess with questions...