Skip to content

Commit

Permalink
Updateed installation steps
Browse files Browse the repository at this point in the history
Updated installation notes and Qlik-Py_init.bat. Python 3.7 is not supported and pystan should be version 2.17 to get it to work on Windows.
  • Loading branch information
Nabeel committed Sep 5, 2018
1 parent 854e919 commit 86baef9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Qlik-Py-Init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ cd ..
echo.
echo Installing required packages... & echo.
python -m pip install --upgrade pip
pip install grpcio
pip install grpcio-tools
pip install numpy
pip install scipy
pip install pandas
pip install grpcio grpcio-tools numpy scipy pandas cython
pip install pystan==2.17
pip install fbprophet
pip install -U scikit-learn
pip install hdbscan
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ I prefer this approach for two key reasons:
## Pre-requisites

- Qlik Sense Enterprise or Qlik Sense Desktop
- Python 3.4 or above
- Python >= 3.4 < 3.7. The recommended version is 3.6.6.
- _Note: The latest stable version of python is 3.6. The `pystan` library, which is required for `fbprophet`, is known to have issues with Python 3.7 on Windows._
- Microsoft Visual C++ Build Tools


## Installation

1. Get Python from [here](https://www.python.org/downloads/). Remember to select the option to add Python to your PATH environment variable.
1. Get Python from [here](https://www.python.org/downloads/release/python-366/). Remember to select the option to add Python to your PATH environment variable.

2. You'll also need a recent C++ compiler as this is a requirement for the `pystan` library used by `fbprophet`. One option is to use [Microsoft Visual C++ Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017). If you are having trouble finding the correct installer try [this direct link](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15). An alternative is to use the `mingw-w64` compiler as described in the [PyStan documentation](http://pystan.readthedocs.io/en/latest/windows.html).
- If you're using the Visual Studio installer, select the Visual C++ Build Tools workload in the installer and make sure you select the C++ compilers in the optional components:<br/><br/>![C++ Compiler Installation](docs/images/Install-01.png)
Expand Down
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ I prefer this approach for two key reasons:
## Pre-requisites

- Qlik Sense Enterprise or Qlik Sense Desktop
- Python 3.4 or above
- Python >= 3.4 < 3.7. The recommended version is 3.6.6.
- _Note: The latest stable version of python is 3.6. The `pystan` library, which is required for `fbprophet`, is known to have issues with Python 3.7 on Windows._
- Microsoft Visual C++ Build Tools


## Installation

1. Get Python from [here](https://www.python.org/downloads/). Remember to select the option to add Python to your PATH environment variable.
1. Get Python from [here](https://www.python.org/downloads/release/python-366/). Remember to select the option to add Python to your PATH environment variable.

2. You'll also need a recent C++ compiler as this is a requirement for the `pystan` library used by `fbprophet`. One option is to use [Microsoft Visual C++ Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017). If you are having trouble finding the correct installer try [this direct link](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15). An alternative is to use the `mingw-w64` compiler as described in the [PyStan documentation](http://pystan.readthedocs.io/en/latest/windows.html).
- If you're using the Visual Studio installer, select the Visual C++ Build Tools workload in the installer and make sure you select the C++ compilers in the optional components:<br/><br/>![C++ Compiler Installation](images/Install-01.png)
Expand Down
Binary file added docs/images/Install-mingw-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Install-mingw-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86baef9

Please sign in to comment.