Python Forum
Trying to install Pyquil, says I need Microsoft Visual C++ - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Trying to install Pyquil, says I need Microsoft Visual C++ (/thread-24509.html)

Pages: 1 2


Trying to install Pyquil, says I need Microsoft Visual C++ - Groucho - Feb-17-2020

I have been attempting to install pyquil using pip on PyCharm and I get an error message saying I need Microsoft Visual C++, which doesn't go away even if I install Visual Studio and restart my machine. Is it possible for anyone to clarify how I can fix this?


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - buran - Feb-17-2020

you need Microsoft Visual C++, not Visual Studio. Visual Studio is IDE and it may support C++ development as well as Python and also others. When installing Visual Studio did you select Desktop Development with C++ (although not sure if it will install everything required in your case)?


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - Groucho - Feb-17-2020

(Feb-17-2020, 04:25 PM)buran Wrote: you need Microsoft Visual C++, not Visual Studio. Visual Studio is IDE and it may support C++ development as well as Python and also others. When installing Visual Studio did you select Desktop Development with C++ (although not sure if it will install everything required in your case)?

No, I didn't do that; should I try re-installing and doing that?


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - buran - Feb-17-2020

If you are using PyCharm and not Visual Studio as your IDE, better uninstall Visual Studio and simply install Microsoft Visual C++ as required


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - Groucho - Feb-17-2020

(Feb-17-2020, 04:34 PM)buran Wrote: If you are using PyCharm and not Visual Studio as your IDE, better uninstall Visual Studio and simply install Microsoft Visual C++ as required

I un-installed Visual Studio and then downloaded Microsoft Visual C++ from here

https://www.microsoft.com/en-us/download/confirmation.aspx?id=40784

and re-started my machine and tried again, but it still didn't work, possibly because I need Microsoft Visual C++ 14.0. Are you possibly able to advise me where I can download that?


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - buran - Feb-17-2020

Download and install Visual C++ Build tools from here
https://visualstudio.microsoft.com/visual-cpp-build-tools/

more info and Q&A:
https://wiki.python.org/moin/WindowsCompilers
https://www.google.com/search?q=microsoft+visual+c%2B%2B+14.00


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - Groucho - Feb-17-2020

(Feb-17-2020, 05:02 PM)buran Wrote: Download and install Visual C++ Build tools from here
https://visualstudio.microsoft.com/visual-cpp-build-tools/

Thanks; now the error message is "error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status -1073741701"


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - buran - Feb-17-2020

no idea, whatsoever... maybe someone else...


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - snippsat - Feb-17-2020

Using conda can be easier for this on Windows.
It will find needed compiler and other stuff needed.
I tested with.
conda install -c rigetti pyquil
Install and import test 4-5 give no errors.
For this you need Anaconda/Miniconda,they are stand alone so no problem with have installed before.


RE: Trying to install Pyquil, says I need Microsoft Visual C++ - Groucho - Feb-18-2020

(Feb-17-2020, 09:27 PM)snippsat Wrote: Using conda can be easier for this on Windows.
It will find needed compiler and other stuff needed.
I tested with.
conda install -c rigetti pyquil
Install and import test 4-5 give no errors.
For this you need Anaconda/Miniconda,they are stand alone so no problem with have installed before.

Thanks, but I now find I can't import get_qc from pyquil.