Jan 5, 2019
7 simple steps to install Python & TM1py without internet
-
Download Python from https://www.python.org/downloads/
-
Install Python in the target environment and in a secondary environment where access to the internet is available (e.g., on your desktop). The same Python version must be installed in both environments.
-
In the secondary environment install tm1py with pip:
C:Python310scriptspip install tm1py[pandas]
-
In the secondary environment create a snapshot of your installed packages with pip:
C:Python310scriptspip freeze > C:/temp/offline_install/requirements.txt
-
In the secondary environment download the tm1py packages and its dependencies as files with pip:
pip download tm1py[pandas]
-
Now move the requirements.txt and the package files to the target environment
-
On the target environment install the packages with pip:
C:Python310scriptspip install --no-index --find-links C:/temp/offline_install/ -r requirements.txt
It will return the path where Python is installed.