I don't know if this is the right place to ask this question. I just thought it would be a place where people knew what they are doing. If there is a better place to look for answers (stackoverflow for example), feel free to tell me.
The problem is that .NET can't install iqsharp. It says it doesn't recognize the file even though it is in the PATH folder (user/.dotnet/tools).
> dotnet iqsharp install
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET Core program, but dotnet-iqsharp does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
It shows the same behavior when I want to use other .NET packages. I have dotnet version 3.1.101. I can send dotnet --info if you want.
I have looked on github and other websites for solutions but most of the problems were caused by Linux Ubuntu and most of the treads are still open.
Thanks for reading and I hope you can help me.
dotnet tool install -g Microsoft.Quantum.IQSharp
before runningdotnet iqsharp install
? The first step makes the IQ# kernel available at the command line, while the second step registers the kernel with Jupyter. – Chris Granade Jan 16 '20 at 21:35dotnet tool install -g dotnet-format
should make the commanddotnet-format
available on$PATH
; can you run that and check thatwhich dotnet-format
works? – Chris Granade Jan 17 '20 at 17:02which
should bewhere
. Strangely the the search returns nothing even though the executable is in in the correct folder and the path to the folder is in the PATH variable ($env:USERPROFILE/.dotnet/tools
). I do not really know what you mean with .NET Core Global Tools but I just installed dotnet for q# and have only installed cowsay, format and iqsharp. – BrockenDuck Jan 17 '20 at 18:16dotnet tool
feature; IQ#,dotnet-format
anddotnet-cowsay
are all examples of Global Tools (more docs at https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools).Anyway, if your shell environment (looks like you're using PowerShell from the
– Chris Granade Jan 17 '20 at 19:06$env:
notation?) can't find any Global Tools, that does suggest a problem with$Env:PATH
. It's a bit confusing, since you said$Env:PATH
contains the.dotnet/tools
folder under your home folder.PATH
environment variable. Any tips ? – BrockenDuck Jan 17 '20 at 21:51.dotnet/tools
is on your user path. After editing, relaunch your shell and it should work. – Chris Granade Jan 17 '20 at 22:48