I just installed mssql-cli with pip,

pip3 install mssql-cli

Then I try to run mssql-cli and I get

$ mssql-cli
/usr/bin/python: No module named mssqlcli

1 Answer 1


I tried to fix this by submitting a patch #234 (approved but not yet committed). You'll have to edit the file ~/.local/bin/mssql-cli and replace

python -m mssqlcli.main "$@"

With this line

( command -v python3 && python3 -m mssqlcli.main "$@" ) || python -m mssqlcli.main "$@"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.