Install Python SDK in XAMPP

Hi everyone, is possible to install Python SDK in XAMPP? I make this question because when I use “from algosdk import algod” or other similar imports I receive a blank page. So if someone know how use this import whit XAMPP i appreciate very much.
Thanks :slight_smile:

You just need Python3 (the SDK will not work with Python2) and pip is installed.
Then, you should be able to install the Algorand Python SDK either by:

pip3 install py-algorand-sdk

or

python3 -m pip install py-algorand-sdk

In case you have a non-standard installation of Python3, you may need to manually install pip:

https://pip.pypa.io/en/stable/installing/

I already install Algorand Python SDK on my computer. When I run .py file from terminal it’s all ok. But when i run the same .py file in xampp I get a blank page. And I think that’s because xampp can’t find the package/module, where I need to install (again) to run the .py file in xampp like in terminal?

Thanks :slight_smile:

It is possible that XAMP uses a different version of Python (a different python3 executable from a different location)
You need to install the Algorand SDK with the correct python3 executable.

Resolved. I need to execute the command sudo pip3 install py-algorand-sdk. I just execute pip3 install py-algorand-sdk. :face_with_symbols_over_mouth: