0
$\begingroup$

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.

$\endgroup$
  • $\begingroup$ By way of my understanding, did you run dotnet tool install -g Microsoft.Quantum.IQSharp before running dotnet iqsharp install? The first step makes the IQ# kernel available at the command line, while the second step registers the kernel with Jupyter. $\endgroup$ – Chris Granade Jan 16 at 21:35
  • $\begingroup$ Yes I did, the installation was sucessful $\endgroup$ – Jonathcraft Jan 17 at 6:36
  • $\begingroup$ why platform are you using? Also I'm not sure, but you might need .net core 3.0.100, support for 3.1.100 should be coming on the next release (end of January). $\endgroup$ – El capi Jan 17 at 7:14
  • $\begingroup$ I use windows 10, I didn't see on the documentation .net core 3..1 wasn't supported. On the documentation it just says .NET Core SDK 3.0 or later. Are you sure it will be released on the end of January, I cannot afford to wait more than that ? $\endgroup$ – Jonathcraft Jan 17 at 7:47
  • $\begingroup$ You mentioned that you observe the same behavior when you want to use other .NET packages? Following up on that, can you double-check if youuse any other .NET Core Global Tools? For instance, dotnet tool install -g dotnet-format should make the command dotnet-format available on $PATH; can you run that and check that which dotnet-format works? $\endgroup$ – Chris Granade Jan 17 at 17:02
0
$\begingroup$

Basicaly what happened is that dotnet didn't add itself to path. Path is an environment variable which is basically a list of paths to find executable. You can see it by simply typing PATH in the command prompt. You have to add the path to your dotnet tools which should be %USERPROFILE%/.dotnet/tools in the control panel. Look on the internet about how to do it, there are plenty tutorials. The problem should be solved.

$\endgroup$
0
$\begingroup$

Go to Pycharm or VS Code and in console do write this command pip install qsharp . It works well.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.