dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

Install via pip3 doesn't work #385

Closed ePaul closed 4 years ago

ePaul commented 4 years ago

After failing to install this via apt, I tried to use pip to install mssql-cli on my Ubuntu 18.04.

sudo pip3 install mssql-cli

This installed something without any error, but then

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

I tried installing mssqlcli, but that is https://github.com/rtrox/mssqlcli, and after that, I still get the same error.

It looks like the mssql-cli script is always calling the default python binary, which in my system is Python 2.

Installing via pip2 seems to work. If this is python 2 only (or needs to be installed for the same python installation which python points to), this needs to be documented.

But I guess the installation could just create a script which uses the same python version which was used for installing it.

ellbosch commented 4 years ago

Apologies for your installation issues, we do in fact support Python 3.

Take a look at this thread. Looks like this can happen with multiple versions of Python installed.