Hi
I’m struggling to install NUPIC for the first time on my MAC. I seem to be getting weird permissions errors and suspect it is because my Python install isn’t right. This is a work MAC and I inherited the installation. Also I don’t know much python so don’t really understand how the different versions sit together. Looks like I have 2.6 and 2.7 installed with 2.7 being the default.
When I run pip install NUPIC I get this error about a package called numpy:
Installing collected packages: numpy
Found existing installation: numpy 1.13.0
Uninstalling numpy-1.13.0:
Exception:
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/init.py”, line 267, in renames
shutil.move(old, new)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/numpy-1.13.0.dist-info/DESCRIPTION.rst’
Also the installation page says to run this after installation:
From the root of the repo:
py.test tests/unit
But makes no mention of where that is located…
Any help much appreciated
Brad