NuPic Install Issue on Ubuntu 16.04 LTS

Hi,

I am trying to install NuPIC on my Ubuntu machine, and I am getting the following error:

Installed /home/gopal-m/anaconda2/lib/python2.7/site-packages/nupic-0.5.5.dev0-py2.7.egg
Processing dependencies for nupic==0.5.5.dev0
Searching for nupic.bindings==0.4.5.dev0
Reading https://pypi.python.org/simple/nupic.bindings/
No local packages or download links found for nupic.bindings==0.4.5.dev0
error: Could not find suitable distribution for Requirement.parse(‘nupic.bindings==0.4.5.dev0’)

Is there a way to install the required bindings? I cannot seem to find this on the pypi page.

Any suggestions would be greatly appreciated. Thank you!

1 Like

What command(s) did you run to install?

This is with the python setup.py install portion of the Ubuntu install. All dependencies (Numpy, Matplotlib, etc) have been installed.

Ok, but what directions are you following? It doesn’t look like you’ve installed nupic.core bindings yet. You have to do that first. See https://github.com/numenta/nupic.core/blob/master/README.md

Thanks for pointing me to the github page, however when I tried to install the nupic.core bindings, I received the following error message:

Could not find a version that satisfies the requirement nupic.bindings (from versions: )
No matching distribution found for nupic.bindings

Any idea where the problem might be? Thanks.

Please, you must paste the exact commands you are using to install, I don’t know what you are doing to cause these errors!

Maybe he missed this additional step required for Linux installations:

pip install https://s3-us-west-2.amazonaws.com/artifacts.numenta.org/numenta/nupic.core/releases/nupic.bindings/nupic.bindings-0.4.4-cp27-none-linux_x86_64.whl

(Source: https://github.com/numenta/nupic/blob/master/README.md#install-linux)

gopal-m@gopal-m:~/nupic$ nupic-bindings-check
Successfully imported nupic.bindings.

gopal-m@gopal-m:~/nupic$ sudo pip install nupic-bindings
The directory ‘/home/gopal-m/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/gopal-m/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting nupic-bindings
Could not find a version that satisfies the requirement nupic-bindings (from versions: )
No matching distribution found for nupic-bindings

Just by looking at the above, the NuPIC bindings have been imported but cannot be installed. The error message is no matching distribution found for nupic-bindings.

Any thoughts on what may be the problem here?

Did you try to upgrade pip?

curl https://bootstrap.pypa.io/get-pip.py | sudo python

I just tried the pip upgrade you had suggested, however still obtaining the same error when attempting install of nupic bindings.

Just to confirm, you tried doing a binary install by running the following commands?

pip install https://s3-us-west-2.amazonaws.com/artifacts.numenta.org/numenta/nupic.core/releases/nupic.bindings/nupic.bindings-0.4.4-cp27-none-linux_x86_64.whl
pip install nupic

Before you do this, it would be a good idea to run this a few times to ensure everything is uninstalled:

pip uninstall nupic -y
pip uninstall nupic.bindings -y

Also, try not to use sudo, instead, you can use the --user pip option to install to a local location instead of a system location.

Thank you. This took care of many of the problems.

Did you successfully install it?