Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • In what kind of environment? Directly where all users have access to the same file system, indirectly where you have a server doing this as a result of a user-initiated action, or something else? Commented Jan 12, 2023 at 22:54
  • It's on a server. Commented Jan 12, 2023 at 23:18
  • 2
    Please edit your question and provide us with more details as to exactly what the situation is, who/what will be running pip and how, and what the desired end results are. Are the file system manipulations such as running pip install or pip uninstall being 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 control pip in the same environment is necessary. Commented Jan 12, 2023 at 23:23
  • Not an answer nor necessarily a defect of the question, but consider that even if pip does 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. Commented Jan 13, 2023 at 8:37
  • Ugh. The recent edit has completely changed the focus of the question. "They both click on the update button. A request is sent to the server in order to update the app's package." This completely depends on what the server actually does, not pip! Does the server queue, deduplicate, normalise, ... such requests? Do you actually care about "the server" or would you adjust it based on what pip does? Retrofitting such details can really mess with questions... Commented Jan 13, 2023 at 11:00