-
Notifications
You must be signed in to change notification settings - Fork 87
/
Qlik-Py-Init.ps1
25 lines (25 loc) · 1.29 KB
/
Qlik-Py-Init.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Write-Output "Setting up the Python virtual environment..."
python -m venv $PSScriptRoot\qlik-py-env
Write-Output "Copying project files to the new directory..."
xcopy /E /I $PSScriptRoot\generated $PSScriptRoot\qlik-py-env\generated
xcopy /E /I $PSScriptRoot\core $PSScriptRoot\qlik-py-env\core
xcopy /E /I $PSScriptRoot\models $PSScriptRoot\qlik-py-env\models
Write-Output "Activating the virtual environment..."
& $PSScriptRoot\qlik-py-env\Scripts\activate.ps1
Write-Output "Installing required packages..."
python -m pip install --upgrade setuptools pip
pip install wheel==0.34.2
pip install grpcio==1.26.0 grpcio-tools==1.26.0 numpy==1.17.5 scipy==1.4.1 pandas==0.25.3 cython==0.29.14 joblib==0.11 holidays==0.9.11 pyyaml==5.3
pip install pystan==2.17
pip install fbprophet==0.4.post2
pip install scikit-learn==0.23.1
pip install hdbscan==0.8.26
pip install spacy==2.2.4
pip install efficient_apriori==1.0.0
pip install tensorflow==1.14.0
pip install keras==2.2.5
python -m spacy download en
Write-Output "Creating a new firewall rule for TCP port 50055..."
netsh advfirewall firewall add rule name=Qlik-PyTools dir=in action=allow protocol=TCP localport=50055
Write-Output "Setup completed. Please check the log above for errors in red text."
Write-Output "Run Qlik-Py-Start.ps1 to start this Server Side Extension."