Atlas generated: python -m pip install "pymongo[srv]"==3.12, which throws an error. The correct syntax is: python -m pip install "pymongo[srv]==3.12".

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Detailed steps to reproduce the problem?

      • Step 1: Go to MongoDB Atlas and select Python as the driver and Version 3.12 or later.
      • Step 2: Copy the generated pip install command suggested by the Atlas UI.
      • Step 3: The following command:
      python -m pip install "pymongo[srv]"==3.12
      
      • Step 4: Encounter the error:
      ERROR: Invalid requirement: '==3.12': Expected package name at the start of dependency specifier
      

      Definition of done: what must be done to consider the task complete?

      • The issue can be considered done when the pip install command generated by Atlas is corrected in the UI and no longer results in the error.

      The exact Python version used, with patch level:

      Python 3.12.6

      The exact version of PyMongo used, with patch level:

      Not applicable — PyMongo installation failed due to incorrect pip syntax.

      Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.

      • MongoDB Setup: MongoDB Atlas (hosted).
      • Topology: Clustered.

      The operating system and version (e.g. Windows 7, OSX 10.8, ...)

      • Operating System: Windows 11 .

      Web framework or asynchronous network library used, if any, with version (e.g. Django 1.7, mod_wsgi 4.3.0, gevent 1.0.1, Tornado 4.0.2, ...)

      • None

        1. mongodb 1.png
          mongodb 1.png
          36 kB
        2. mongodb 2.png
          mongodb 2.png
          120 kB

            Assignee:
            Alex Clark
            Reporter:
            Rodiat Hammed
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: