1

I installed Swift for Ubuntu using the latest toolchain available. At the time of writing, that version is 5.4.3. I downloaded it from https://swift.org/download/#releases

I installed many dependencies including python3 and python-dev-is-python3 as I have seen mongodb do in order to support Ubbuntu 20.04. However, attempting to run swift still prints,

/usr/share/swift/usr/bin/lldb: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory 

Does anyone have any suggestions as to what the problem may be?

Ilias Karim
  • 192
  • 1
  • 1
  • 7

1 Answers1

3

The file you’ve downloaded is built for Python 3.7; Ubuntu 20.04 includes Python 3.8.

You need to download the Ubuntu 20.04 build of Swift, which is built for Python 3.8.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164