To run TabPy in Python virtual environment follow the steps:
-
Install
virtualenv
package:pip install virtualenv
-
Create virtual environment (replace
my-tabpy-env
with your virtual environment name):virtualenv my-tabpy-env
-
Activate the environment.
-
For Windows run
my-tabpy-env\Scripts\activate
-
For Linux and Mac run
source my-tabpy-env/bin/activate
-
-
Run TabPy:
-
Default TabPy
tabpy
-
Local TabPy
To create a version of TabPy that incorporates locally-made changes, use pip to create a package from your local TabPy project and install it within that directory:
pip install -e .
Then start TabPy just like it was mentioned earlier
tabpy
-
-
To deactivate virtual environment run:
deactivate
To run TabPy in an Anaconda virtual environment follow the steps: NOTE: this assumes you have installed Anaconda in a Windows environment
-
For Windows open
Anaconda Prompt
from the Windows Start menu, for Linux and Mac run shell. -
Navigate to your home directory:
-
On Windows run
cd %USERPROFILE%
-
For Linux and Mac run
cd ~
-
-
Create the virtual Anaconda environment
conda create --name my-tabpy-env python=3.7
-
Activate your virtual environment
conda activate my-tabpy-env
-
Install TabPy to your new Anaconda environment by following the instructions on the TabPy Server Install documentation page.
-
Run TabPy:
tabpy
-
To deactivate virtual environment run:
conda deactivate