HI,I used anaconda, and got some error when install nupic, can you help me?

(C:\Program Files\Anaconda3) C:\Users\Administrator>pip install nupic
Requirement already satisfied: nupic in c:\program files\anaconda3\lib\site-pack
Collecting asteval==0.9.1 (from nupic)
Using cached asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic)
Using cached coverage-3.7.1.tar.gz
Collecting mock==1.0.1 (from nupic)
Using cached mock-1.0.1.zip
Collecting ordereddict==1.1 (from nupic)
Using cached ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
Using cached psutil-1.0.1.tar.gz
Collecting pytest==3.0.7 (from nupic)
Downloading pytest-3.0.7-py2.py3-none-any.whl (172kB)
41% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 71kB 6.5MB/s eta 0:00:0
47% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 81kB 6.3MB/s eta 0:00
53% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 92kB 6.1MB/s eta 0:0
59% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 102kB 6.0MB/s eta
65% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 112kB 5.7MB/s et
71% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 122kB 5.7MB/s
77% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 133kB 5.7MB/
83% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 143kB 5.7M
89% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 153kB 5.
94% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 163kB
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 174k
B 620kB/s
Collecting pytest-cov==2.5.0 (from nupic)
Downloading pytest_cov-2.5.0-py2.py3-none-any.whl
Collecting pytest-xdist==1.16.0 (from nupic)
Downloading pytest-xdist-1.16.0.tar.gz (88kB)
46% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 40kB 2.6MB/s eta 0:00:
57% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 51kB 2.0MB/s eta 0
69% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 61kB 1.4MB/s e
81% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 71kB 1.5MB/
92% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 81kB 1.
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB
Collecting python-dateutil==2.1 (from nupic)
Using cached python-dateutil-2.1.tar.gz
Collecting PyYAML==3.10 (from nupic)
Using cached PyYAML-3.10.tar.gz
Collecting unittest2==0.5.1 (from nupic)
Using cached unittest2-0.5.1.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-v1ww0b_w\unittest2\se
tup.py”, line 12, in
from unittest2 import version as VERSION
File β€œC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-v1ww0b_w\unittest2\un
ittest2_init_.py”, line 40, in
from unittest2.collector import collector
File β€œC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-v1ww0b_w\unittest2\un
ittest2\collector.py”, line 3, in
from unittest2.loader import defaultTestLoader
File β€œC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-v1ww0b_w\unittest2\un
ittest2\loader.py”, line 92
except Exception, e:
SyntaxError: invalid syntax


Command β€œpython setup.py egg_info” failed with error code 1 in C:\Users\ADMINI~1

1 Like

Sorry, we don’t support Anaconda. Would you like to help write a conda recipe?

If I want to using nupic in python under windows7, how can I do? pls help me, thanks

  1. Download Python 2.7 from here: Python 2.7.

  2. Install python 2.7 using the installer.

  3. open cmd and type pip install nupic. This will install nupic for python.

  4. Now to write your programs simply open a text editor and write the program and save them with .py extension.

  5. To run a python program, open cmd and go to the location of the script on your hard drive. Run python your_Script_name.py

Hope this helps. :slight_smile:

Python 3.5 and after is not suported by Nupic? thanks it may be helpful, I will check

I got the same error, β€œCommand β€œpython setup.py egg_info” failed with error code 1 …”. I’m using Windows 10, and the previous error appears after I typed β€œpip install nupic”… Did you find a way to install Nupic on Windows?