Can not install kahypar in VsCode

I am currently learning from the tutorial on quantum circuit cutting from the following link:

In this tutorial, kahypar is required, but when I followed the steps on the kahypar GitHub page:

I encountered an error as shown in the image. How should I resolve this issue?


make: The term ‘make’ is not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Hi @leo07010 ,

I would recommend making a new conda environment with python=3.10, and writing python -m pip install kahypar.

Do you need guidance on how to create a new conda environment with python=3.10?

Yes, Can you give me. Thank you!!

I think I had change into 3.10. But It give me new error after intall pannylane

When I use 3.12. I would not get this error

Hi @leo07010 ,

You can create a virtual environment with Conda and install PennyLane as follows:

  1. Install Miniconda following the instructions here.
  2. Open your terminal (mac) or command line (Windows).
  3. Create a new Conda environment with: conda create --name <name_of_your_environment> python=3.10
  4. Activate the environment with: conda activate <name_of_your_environment>
  5. Install PennyLane with: python -m pip install pennylane
  6. Install other useful packages with: python -m pip install jupyter matplotlib

Note that you will be installing 3 packages here: PennyLane, Jupyter, and Matplotlib. Also, note that where it says <name_of_your_environment> you can choose any name that you want.

If you’re using Mac or Linux

In addition to the above you need to run python -m pip install kahypar

If you’re using Windows

In addition to the above, make sure your system has the requirements outlined here.
Visit the instructions here in the “Building KaHyPar” section to compile from KaHyPar source.

I hope this helps!