Noob problem - pip3 install py-algorand-sdk does not work

Hi everyone

Algorand caught my interest today and I try to get more familiar with it – but already failed in Step 1.

I tried to install the sdk by using the commend (in Admin mode): pip3 install py-algorand-sdk

However, I always get "command erred out with exit status 1. I already updated my setuptools. Do you have any idea what my issue could be? Highly appreciated!!

Here the full message that I get:

     ERROR: Command errored out with exit status 1:
     command: 'c:\users\username\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-v6lzy269\\pycryptodomex\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-v6lzy269\\pycryptodomex\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\username\AppData\Local\Temp\pip-pip-egg-info-ezrw27hd'
         cwd: C:\Users\username\AppData\Local\Temp\pip-install-v6lzy269\pycryptodomex\
    Complete output (20 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\username\AppData\Local\Temp\pip-install-v6lzy269\pycryptodomex\setup.py", line 457, in <module>
        set_compiler_options(package_root, ext_modules)
      File "C:\Users\username\AppData\Local\Temp\pip-install-v6lzy269\pycryptodomex\compiler_opt.py", line 341, in set_compiler_options
        clang = compiler_is_clang()
      File "C:\Users\username\AppData\Local\Temp\pip-install-v6lzy269\pycryptodomex\compiler_opt.py", line 251, in compiler_is_clang
        return test_compilation(source, msg="clang")
      File "C:\Users\username\AppData\Local\Temp\pip-install-v6lzy269\pycryptodomex\compiler_opt.py", line 82, in test_compilation
        objects = compiler.compile([fname], extra_postargs=extra_cc_options)
      File "c:\users\username\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 323, in compile
        self.initialize()
      File "c:\users\username\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 220, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 312, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 266, in _msvc14_get_vc_env
        raise distutils.errors.DistutilsPlatformError(
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    Testing support for clang
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Have you tried the following?

1 Like

Wooooooow - that immediately solved my problem. Thanks a lot. I had spent quite some time trying to fix this