Ludwig: Installation error on ubuntu

Created on 14 Feb 2019  路  6Comments  路  Source: ludwig-ai/ludwig

I tried to install it on ubuntu, details:

  • Ubuntu 18.04.1 LTS under Linux Subsystem / Win 10
  • Python 3.6.7
  • pip latest version (just installed)
  • Installed all dependencies via pip manually

I get this error when trying to install ludwig:
Collecting ludwig
Could not find a version that satisfies the requirement ludwig (from versions: )
No matching distribution found for ludwig

waiting for answer

Most helpful comment

I think i found the solution:
Since on ubuntu by default there is python 2 and python 3, if you install pip via apt-get install python-pip, it will install the python2 version.
So what i did, is install python3-pip and installed ludwig via:
pip3 install ludwig
instead of:
pip install ludwig

Now the installation completed successfully (i've run the spacy-download command successfully too).
Maybe this information could be useful to someone else too.
However, there is another problem: if i try to write ludwig in the terminal it says "ludwig: command not found"..
BTW: It has nothing to do with Windows, i am replicating the steps within a Virtual machine running ubuntu 18.04..

Thanks and best regards

All 6 comments

Can you try this:
pip install --index-url https://pypi.org/project/ludwig/ ludwig

This directly points to the ludwig repo. Also, are you using a virtual environment?
You don't need to install the requirements separately if you're using pip to install Ludwig.

Hi, thanks for the response,
same error..
Well, as said, i am using Ubuntu on the Windows 10 Linux Subsystem (in wich i am running other stuff too, such as my lamp-stack)

Unfortunately I don't have a windows machine to try it on, but i suspect it has to do with pip. I can suggest to install it by cloning the repo and installing it manually, as explained in Getting Started. Please let me know if following those instructions you are able to install it.

I think i found the solution:
Since on ubuntu by default there is python 2 and python 3, if you install pip via apt-get install python-pip, it will install the python2 version.
So what i did, is install python3-pip and installed ludwig via:
pip3 install ludwig
instead of:
pip install ludwig

Now the installation completed successfully (i've run the spacy-download command successfully too).
Maybe this information could be useful to someone else too.
However, there is another problem: if i try to write ludwig in the terminal it says "ludwig: command not found"..
BTW: It has nothing to do with Windows, i am replicating the steps within a Virtual machine running ubuntu 18.04..

Thanks and best regards

Try to run python3 -m ludwig.train -h.
I'm not really sure of what happens with this configuration with python2 and python3 at the same time, I should strongly suggest you to create a virtual environment with virtualenv -p python3, install everything there and you should have no problem.
Please confirm if either the first command or installing within a virtualenv solves your issue.

That works! Thanks!
Well, its a stock-installation of ubuntu and they strangely bundle both python versions o.O
Nevertheless, putting it into a virtual environment works!
Case closed, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenMacKenzie picture BenMacKenzie  路  7Comments

w4nderlust picture w4nderlust  路  4Comments

catr1ne55 picture catr1ne55  路  4Comments

serv picture serv  路  8Comments

wschroederga picture wschroederga  路  6Comments