Question

I am competing in the HWO2014, yet I cannot run my bot. Here is the build file I was provided with, alongside the run file:

  • build:

    #!/bin/bash
    
    virtualenv env --no-site-packages --distribute
    
    source env/bin/activate
    
  • run:

    #!/bin/bash
    
    source env/bin/activate
    
    python main.py "$@"
    

However, when I run ./build on the MinGW terminal, the following error is reported:

./build: line 3: virtualenv: command not found
./build: line 5: env/bin/activate: No such file or directory

What does this error mean? How do I prevent it?

Was it helpful?

Solution

You need to install virtualenv on your machine. The run file is a bash script which is saying to go into the newly created virtual environment before running the python script. More info can be found on the official virtualenv docs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top