Hi,
I am a newbie here, I tried installing nupic on ubuntu where python version is 2.7, but failed. Does anyone tell me how to fix it? Thanks
ubuntu os information shows as follows:
$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
$ uname -a
Linux S822lc1 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:15:33 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
Output of installation is shown below
$ sudo pip install nupic
The directory β/home/asiainfo/.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/asiainfo/.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
Downloading nupic-0.5.6.tar.gz (4.6MB)
100% |ββββββββββββββββββββββββββββββββ| 4.6MB 184kB/s
Collecting asteval==0.9.1 (from nupic)
Downloading asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic)
Downloading coverage-3.7.1.tar.gz (284kB)
100% |ββββββββββββββββββββββββββββββββ| 286kB 296kB/s
Collecting mock==1.0.1 (from nupic)
Downloading mock-1.0.1.zip (861kB)
100% |ββββββββββββββββββββββββββββββββ| 870kB 238kB/s
Collecting ordereddict==1.1 (from nupic)
Downloading ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
Downloading psutil-1.0.1.tar.gz (156kB)
100% |ββββββββββββββββββββββββββββββββ| 163kB 303kB/s
Collecting pytest==2.5.1 (from nupic)
Downloading pytest-2.5.1.tar.gz (577kB)
100% |ββββββββββββββββββββββββββββββββ| 583kB 243kB/s
Collecting pytest-cov==1.6 (from nupic)
Downloading pytest-cov-1.6.tar.gz
Collecting pytest-xdist==1.8 (from nupic)
Downloading pytest-xdist-1.8.zip
Collecting python-dateutil==2.1 (from nupic)
Downloading python-dateutil-2.1.tar.gz (152kB)
100% |ββββββββββββββββββββββββββββββββ| 153kB 292kB/s
Collecting PyYAML==3.10 (from nupic)
Downloading PyYAML-3.10.tar.gz (241kB)
100% |ββββββββββββββββββββββββββββββββ| 245kB 151kB/s
Collecting unittest2==0.5.1 (from nupic)
Downloading unittest2-0.5.1.zip (78kB)
100% |ββββββββββββββββββββββββββββββββ| 81kB 149kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File ββ, line 1, in
File β/tmp/pip-build-74n4ozv7/unittest2/setup.pyβ, line 12, in
from unittest2 import version as VERSION
File β/tmp/pip-build-74n4ozv7/unittest2/unittest2/init.pyβ, line 40, in
from unittest2.collector import collector
File β/tmp/pip-build-74n4ozv7/unittest2/unittest2/collector.pyβ, line 3, in
from unittest2.loader import defaultTestLoader
File β/tmp/pip-build-74n4ozv7/unittest2/unittest2/loader.pyβ, line 92
except Exception, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command βpython setup.py egg_infoβ failed with error code 1 in /tmp/pip-build-74n4ozv7/unittest2/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the βpip install --upgrade pipβ command.
The same problem happened when I try in windows 10. the information shows like this:
(D:\Anaconda3) C:\Users\admin>pip install nupic
Collecting nupic
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip.vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001185B90C1D0>, βConnection to pypi.python.org timed out. (connect timeout=15)β)β: /simple/nupic/
Downloading nupic-0.5.6.tar.gz (4.6MB)
100% |ββββββββββββββββββββββββββββββββ| 4.6MB 130kB/s
Collecting asteval==0.9.1 (from nupic)
Downloading asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic)
Downloading coverage-3.7.1.tar.gz (284kB)
100% |ββββββββββββββββββββββββββββββββ| 286kB 345kB/s
Collecting mock==1.0.1 (from nupic)
Downloading mock-1.0.1.zip (861kB)
100% |ββββββββββββββββββββββββββββββββ| 870kB 54kB/s
Collecting ordereddict==1.1 (from nupic)
Downloading ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
Downloading psutil-1.0.1.tar.gz (156kB)
100% |ββββββββββββββββββββββββββββββββ| 163kB 46kB/s
Collecting pytest==2.5.1 (from nupic)
Downloading pytest-2.5.1.tar.gz (577kB)
100% |ββββββββββββββββββββββββββββββββ| 583kB 127kB/s
Collecting pytest-cov==1.6 (from nupic)
Downloading pytest-cov-1.6.tar.gz
Collecting pytest-xdist==1.8 (from nupic)
Downloading pytest-xdist-1.8.zip
Collecting python-dateutil==2.1 (from nupic)
Downloading python-dateutil-2.1.tar.gz (152kB)
100% |ββββββββββββββββββββββββββββββββ| 153kB 137kB/s
Collecting PyYAML==3.10 (from nupic)
Downloading PyYAML-3.10.tar.gz (241kB)
100% |ββββββββββββββββββββββββββββββββ| 245kB 106kB/s
Collecting unittest2==0.5.1 (from nupic)
Downloading unittest2-0.5.1.zip (78kB)
100% |ββββββββββββββββββββββββββββββββ| 81kB 108kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File ββ, line 1, in
File βC:\Users\admin\AppData\Local\Temp\pip-build-vc3b6knh\unittest2\setup.pyβ, line 12, in
from unittest2 import version as VERSION
File "C:\Users\admin\AppData\Local\Temp\pip-build-vc3b6knh\unittest2\unittest2_init.py", line 40, in
from unittest2.collector import collector
File βC:\Users\admin\AppData\Local\Temp\pip-build-vc3b6knh\unittest2\unittest2\collector.pyβ, line 3, in
from unittest2.loader import defaultTestLoader
File βC:\Users\admin\AppData\Local\Temp\pip-build-vc3b6knh\unittest2\unittest2\loader.pyβ, line 92
except Exception, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command βpython setup.py egg_infoβ failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-build-vc3b6knh\unittest2\