"/usr/bin/python: No module named mssqlcli"
See original GitHub issueI’ve followed the installation instructions and when I try to run mssql-cli
I get the subject error message.
Installation went OK so I am not sure what is wrong? I’m using Ubuntu 17.10
joakim@XPS:~$ pip install mssql-cli
Requirement already satisfied: mssql-cli in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: cli-helpers<1.0.0,>=0.2.3 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: click>=4.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: configobj>=5.0.6 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: future>=0.16.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: enum34>=1.1.6 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: wheel>=0.29.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: prompt-toolkit<1.1.0,>=1.0.10 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: applicationinsights>=0.11.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: humanize>=0.5.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: sqlparse<0.3.0,>=0.2.2 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: backports.csv>=1.0.0 in /usr/local/lib/python3.6/dist-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli)
Requirement already satisfied: terminaltables>=3.0.0 in /usr/local/lib/python3.6/dist-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from configobj>=5.0.6->mssql-cli)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.6/dist-packages (from prompt-toolkit<1.1.0,>=1.0.10->mssql-cli)
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
When I run mssql-cli, I get "No module named mssqlcli"
pip3 install mssql-cli. Then I try to run mssql-cli and I get $ mssql-cli /usr/bin/python: No module named mssqlcli.
Read more >Installed python package with `pip3`, but when I call it I get "No ...
The issue is that if you look at the actual mssql-cli file it runs it using the python command. This (on my Mac)...
Read more >usr/bin/python: No module named mssqlcli - Bountysource
I've followed the installation instructions and when I try to run mssql-cli I get the subject error message.
Read more >Failed Installation of MSSQL-CLI on Ubuntu - DBAKevlar
ImportError: No module named 'ConfigParser' dpkg: error processing ... Complete output from command /usr/bin/python -c "import setuptools, ...
Read more >mssql-cli - PyPI
mssql-cli is an interactive command line query tool for SQL Server. ... Non-interactive support: execute a query without jumping into the interactive ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixing it by installing by pip2
pip2 install mssql-cli
I modified the mssql-cli command and changed the last line from:
python -m mssqlcli.main "$@"
to:
python3 -m mssqlcli.main "$@"
and now it appears to be running on Python3.