# Problems with Q# installing

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.

• 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. – Chris Granade Jan 16 at 21:35
• Yes I did, the installation was sucessful – Jonathcraft Jan 17 at 6:36
• 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). – El capi Jan 17 at 7:14
• 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 ? – Jonathcraft Jan 17 at 7:47
• 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? – Chris Granade Jan 17 at 17:02

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.
Go to Pycharm or VS Code and in console do write this command pip install qsharp . It works well.