Setup.py error: Invalid environment marker

Hi all,

So in running the setup.py file I’m getting this error. Any ideas?? Thanks!

error in nupic setup command: Invalid environment marker: platform_system==‘Linux’: or platform_system==‘Darwin’

You need to upgrade to newer setuptools that supports environment markers inside extras_require.

Reference https://github.com/numenta/nupic/blob/7b0106cf8d6131c1f027a7b539ae9c732a661a62/setup.py#L123

The environment markers are presently used directly in nupic’s setup.py to specify a dynamic dependency on pycapnp, which is presently needed on linux and osx, but not desired on windows (see also https://www.python.org/dev/peps/pep-0508/, if curious)

I performed some experimentation in my MacBookPro, and came up with this compatibility matrix for environment markers used in the extras_require property:

setuptools: 20.2.2 +

wheel: 0.24.0 +

pip: 8.1.2 +

See also https://github.com/numenta/nupic#dependencies