문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top