Skip to content

Commit c6bd3df

Browse files
committed
updated python modules
1 parent aad0a8c commit c6bd3df

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,23 @@ If you want to use python, then obviously:
5454
+ Python 2 is not tested by our CI anomore. It may still work but we don't test it. We expect to drop support for Python2 around 2020.
5555
- [Anaconda Python](https://www.anaconda.com/products/individual#Downloads) 3.7+
5656
+ On windows you must run from within 'Anaconda Prompt' not 'Command Prompt'.
57-
+ The pre-built binary releases only work with Standard Python so you must build from sources.
5857
+ Anaconda Python is not tested in our CI.
5958

6059
Be sure that your Python executable is in the Path environment variable.
6160
The Python that is in your default path is the one that will determine which
6261
version of Python the extension library will be built for.
6362
- Other implementations of Python may not work.
6463
- Only the standard python from python.org have been tested.
64+
- On Linux you will need both the Python install and the Python-dev install
65+
'$ sudo apt install python3.11'
66+
'$ sudo apt install python3.11-dev'
67+
- You will probably also want to setup a [https://docs.python.org/3/library/venv.html(venv environment).
6568

6669
- **C\+\+ compiler**: c\+\+11/17 compatible (ie. g++, clang\+\+).
67-
- boost library (if not a C\+\+17 or greater compiler that supports filesystem.)
68-
If the build needs boost, it will automatically download and install boost with the options it needs.
69-
- CMake 3.7+ (MSVC 2019 needs CMake 3.14+, MSVC 2022 needs CMake 3.21+).
70-
Install the latest using [https://cmake.org/download/](https://cmake.org/download/)
70+
- boost library (if not a C\+\+17 or greater compiler that supports filesystem.)
71+
If the build needs boost, it will automatically download and install boost with the options it needs.
72+
- CMake 3.7+ (MSVC 2019 needs CMake 3.14+, MSVC 2022 needs CMake 3.21+).
73+
Install the latest using [https://cmake.org/download/](https://cmake.org/download/)
7174

7275
Note: Windows MSVC 2019 runs as C\+\+17 by default so boost is not needed. On linux use -std=c++17 compile option to avoid needing boost.
7376

@@ -89,14 +92,15 @@ git clone https://github.com/htm-community/htm.core
8992
1) Prerequisites: install the following python packages:
9093
`python -m ensurepip --upgrade`
9194
`python -m pip install setuptools packaging`
95+
The remaining packages will be installed within the build.
9296

9397
2) At a command prompt, `cd` to the root directory of this repository.
9498

9599
3) Run: `python setup.py install --user --force`
96100

97101
This will build and install a release version of htm.core. The `--user` option prevents the system installed site-packages folder from being changed and avoids the need for admin privileges. The `--force` option forces the package to be replaced if it already exists from a previous build. Alternatively you can type `pip uninstall htm.core` to remove a previous package before performing a build.
98102

99-
* If you are using `virtualenv` you do not need the --user or --force options.
103+
* If you are using `virtualenv` you may not need the --user or --force options.
100104
* If you are using Anaconda Python you must run within the `Anaconda Prompt` on Windows. Do not use --user or --force options.
101105

102106
* If you run into problems due to caching of arguments in CMake, delete the

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#See http://www.pip-installer.org/en/latest/requirements.html for details
22
setuptools>=34.4.0 # needed for Windows with MSVC
3-
pip>=19.3.1
4-
wheel>=0.33.6
5-
cmake>=3.14 #>=3.7, >=3.14 needed for MSVC 2019
3+
pip>=22.3.1
4+
wheel>=0.38.4
5+
cmake>=3.14 #>=3.7, >=3.14 needed for MSVC 2019, >=3.21 needed for MSVC 2022
66
## for python bindings (in /bindings/py/)
7-
numpy>=1.15
7+
numpy>=1.23
88
pytest>=4.6.5 #4.6.x series is last to support python2, once py2 dropped, we can switch to 5.x
99
## for python code (in /py/)
10-
hexy>=1.4.3 # for grid cell encoder
11-
mock>=1.0.1 # for anomaly likelihood test
12-
prettytable>=0.7.2 # for monitor-mixin in htm.advanced (+its tests)
10+
hexy>=1.4.4 # for grid cell encoder
11+
mock>=3.3 # for anomaly likelihood test
12+
prettytable>=3.5.0 # for monitor-mixin in htm.advanced (+its tests)
1313
## optional dependencies, such as for visualizations, running examples
1414
# should be placed in setup.py section extras_require. Install those by
1515
# pip install htm.core[examples]

0 commit comments

Comments
 (0)