Running Python community fork on Windows

#1

Hello,
I am little confused, so try to be gentle.
I install the Community NuPIC on my computer.
I want to start working with it under my Pycharm IDE.
So according to recommendation in the forum ,
from my .\Python37\python.exe I run the command python.exe setup.py install --user --force in the \nupic.cpp-master
The above command create new folder
AppData\Roaming\Python\Python37\site-packages\nupic.bindings-1.0.7.dev0-py3.7-win-amd64.egg
In addition I see in folder nupic.cpp-master\build\Release new folders. I read the README file in nupic.cpp-master\bindings\py , and try to understand how to start work with the package ,but I still not understand how to using this package in my environment , how to add it for example to my Pycharm IDE ?
Can somone explain what I need to do with the following Repository for start working ?

Repository
build
Release
bin — contains unit test executables
distr — Python distribution (packaging directory copied here)
setup.py, requirements.txt will be here
dist — pip egg is generated here
src
nupic
bindings – python extension libraries installed here
regions
tools
include — include files
lib — nupic.core.lib static lib for core found here
scripts — CMake build artifacts are in here.

P.S: Can I add it to existing environment ? (in the official NuPIC version I copy the package into my conda virtual env and working with the existing env) .

THANKS,
MAK

0 Likes

#2

There is no Python 3 HTM solution yet. I’m sure there will be one by the end of the year. The community fork is not quite Python 3 ready. (Please correct me if I am wrong @dman @David_Keeney)

0 Likes

#3

The .py code in nupic.py has not yet been merged into nupic.cpp. that is correct.
But much of the python code in nupic.py has been ported to use python3 and should work with the extension library from nupic.cpp.

I cannot help you with your IDE setup. But in general, get your extension library from nupic.cpp which it appears you have done, and then you will find the python code that uses it in nupic.py.

1 Like

#4

@David_Keeney, @dmac, thanks for your help!, Your are an asset to the community.
Can you please , describe which repositories I need to take into my environment? , (Even if only to include in my working directory)
Thanks
MAK

1 Like

#5

At this moment, the community repositories are: nupic.cpp for the extension library and nupic.py for the Python code.

Our goal is to combine these two into one repository so it is less confusing and easier to maintain.

0 Likes

#6

Hii,
I solve my problem.
after installation with python, new repository created in the following path AppData\Roaming\Python\Python37\site-packages\nupic.bindings-1.0.7.dev0-py3.7-win-amd64.egg
Copy this package into \Anaconda3\Lib\site-packages and you can work with the community package as part of your conda env.
Thanks,
MAK

1 Like