Project setup with virtualenv. While working with a pyhon3 project, it is better to install project based dependencies inside a project wise virtualenv created. It helps to minimise the interference of different versions of python modules into different projects.
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
Error c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory #include ^ compilation terminated. Traceback (most recent call last): File “”, line 17, in ———————————————————————- Here it is the problem of python devel For centos use “sudo yum install python-devel.x86_64” For Ubuntu use “sudo apt-get install python-dev”