DEV Community

Yahya Siddiqui
Yahya Siddiqui

Posted on

How to Set Up the Soroban Python SDK on Windows

Sure, here's a step-by-step guide on how to set up the Soroban Python SDK on Windows for beginners:

First, you need to download and install Python on your Windows computer. You can download Python from the official website: https://www.python.org/downloads/windows/.

Once Python is installed, you can open a Command Prompt or PowerShell window. To do this, press the Windows key + R to open the Run dialog box. Type "cmd" or "powershell" in the box and press Enter.

In the Command Prompt or PowerShell window, use the pip package installer to install the Soroban Python SDK. Type the following command and press Enter:

Copy code

pip install soroban
Enter fullscreen mode Exit fullscreen mode

This will download and install the Soroban Python SDK along with any required dependencies.

Now that Soroban is installed, you can start using it in your Python projects. To test that Soroban is working properly, you can try running the following code in a Python script:

scss
Copy code

from soroban import Soroban

soroban = Soroban()

result = soroban.evaluate("2 + 2")

print(result)
Enter fullscreen mode Exit fullscreen mode

This code should output the result of the expression "2 + 2", which is 4.

That's it! You have now set up the Soroban Python SDK on Windows and can start using it in your Python projects. For more information on how to use Soroban, you can refer to the official documentation: https://soroban-docs.readthedocs.io/.

Top comments (0)