The easiest way to get all the required libraries installed for Gremlin development is via a virtual environment managed by Poetry [1]. Throughout this the assumption is that VS Code [2] is used and the appropriate Python plugins are installed.
Abbreviated instructions from the official documentation
-
Install a Gremlin compatible version of Python, such as 3.12.x
-
Open a new Terminal / Powershell instance
-
Run the command
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
-
Add the poetry executable to your PATH setting
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";C:\Users\Lionel\AppData\Roaming\Python\Scripts", "User")
-
Launch a new Terminal / Powershell instance and check if poetry can be found by running
poetry --version
-
Add the Poetry plugin (
zeshuaro.vscode-python-poetry
) to VS Code -
Create a virtual environment and install required packages by running the
Poetry install packages
command (Ctrl + Shift + P
) in VS Code -
Restart VS Code for the new environment to be picked up
-
Select the newly created Poetry virtual environment as the project's interpreter