Python Forum

Full Version: Cucumber installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am getting an error message when I try to install cucumber when using the following command. Any assistance would be greatly appreciated.


>>>import subprocess
>>>subprocess.check_call([sys.executable, "-m", "pip", "install", "cucumber-cpp"])
What is your error message?

What OS are you running?
(Apr-24-2024, 10:24 PM)SDS Wrote: [ -> ]I am getting an error message when I try to install cucumber when using the following command. Any assistance would be greatly appreciated.


>>>import subprocess
>>>subprocess.check_call([sys.executable, "-m", "pip", "install", "cucumber-cpp"])

Hi!
I did't understand the error. But if this is what I thought, then maybe try my advice. If you want to use Cucumber in a Python environment, you might want to use behave, which is a BDD (Behavior-Driven Development) framework similar to Cucumber.

import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "behave"])