# Problem running the example code from the nupic repo

**URL:** <https://discourse.numenta.org/t/problem-running-the-example-code-from-the-nupic-repo/9105>\
**Category:** NuPIC\
**Tags:** github\
**Created:** [November 5, 2021, 12:06pm UTC](https://discourse.numenta.org/t/problem-running-the-example-code-from-the-nupic-repo/9105 "2021-11-05T12:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya001](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@surya001](https://discourse.numenta.org/u/surya001)\
**Post date:** [November 5, 2021, 12:06pm UTC](https://discourse.numenta.org/t/problem-running-the-example-code-from-the-nupic-repo/9105/1 "2021-11-05T12:06:04Z")

</div>

Hello everyone,

I am trying to run prediction and anomaly detection code as given in the nupic repository ([nupic/examples/opf/clients/hotgym/prediction/one\_gym at master · numenta/nupic · GitHub](https://github.com/numenta/nupic/tree/master/examples/opf/clients/hotgym/prediction/one_gym)). However, I am not able to do that.  
I cloned the forked nupic repo on my local machine. (I am running on linux). Some of the hurdles I am going through are:

- [] Unable to pip install -r requirement.txt
- [] Unable to run swarm.py and run.py code.

Is there any pre-requisite procedure I need to follow? If there is any better example link I can walk through. Please let me know. I just want to do hands-on on my local machine.

Thank you!
