UserWarning: Could not import the lzma module

Got following error after import turicreate /home/prod/anj/learn/ml/mlvenv/lib/python3.7/site-packages/pandas/compat/ UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError. warnings.warn(msg) Fix: I have ubuntu: For it sudo apt-get install liblzma-dev Reading package lists... Done Building dependency tree Reading state information... Done Now I will go to

Add python3.7 as alternate python along with default on Ubuntu

My default python is 2.7 and I want python 3.7 along with it: Go to opt directory $ cd /opt Create a directory $ mkdir python3 Download Python 3.7 $ wget Extract the python 3.7 tar file $ tar xzf Python-3.7.4.tgz To compile the source go to $ cd Python-3.7.4 To get release build with all

Create a Virtual environment for python 3

I have Ubuntu and it has python 2.7 as default. Along with it I have configured python3 as well. To create a virtual environment for a python 3 project I have executed following virtualenv -p /usr/bin/python3 mlvenv It created a virtual environment named mlvenv Now to activate it source mlvenv/bin/activate To confirm python --version