Closed david-waterworth closed 5 years ago
Try
dotnet mlnet ...arguments
The mlnet tool needs to run under the context of dotnet
Can you run dotnet tool list -g
to show what's installed?
You should see mlnet listed: (though at v0.3.0)
$ dotnet tool list -g
Package Id Version Commands
---------------------------------------------------
mlnet 0.4.0-preview-27703-0 mlnet
If mlnet runs directly, ~/.dotnet/tools/mlnet --version
, you can add it to your path.
Looks like dotnet install isn't adding to the path in Ubuntu:
On Ubuntu (18.04) the .NET SDK install did not properly add the ~/.dotnet/tools folder to the user path, and so I had to explicitly add that path to my environment after the .NET SDK/Runtime install.
You can add export PATH="$PATH:~/.dotnet/tools"
to your .bashrc
file. Afterwards, you'll need to restart your terminal, or source the file source ~/.bashrc
.
Thanks @justinormont that was the problem, adding ~/.dotnet/tools
to my PATH works.
Note, if you are using bash shell, you do not need to add it to PATH. It should be handled already.
Also, if you see the following you need to restart your session
Since you just installed the .NET Core SDK, you will need to logout or restart your session before running the tool you installed. You can invoke the tool using the following command: mlnet Tool 'mlnet' (version '0.3.0') was successfully installed.
Problem encountered on https://dotnet.microsoft.com/learn/machinelearning-ai/ml-dotnet-get-started-tutorial/install Operating System: Linux Ubuntu 18.04 - x64
I'm trying to work through the tutorial. I've installed mlnet using
dotnet tool install
but when I try and run it, I getcommand not found
. I guess the install location isn't on my path?