python virtual environment

Activate.ps1 cannot be loaded because running scripts is disabled on this system

We encountered with this error “Activate.ps1 cannot be loaded because running scripts is disabled on this system” while activating the Python virtual environment in Windows system. The solution is quite simple and reason of this error is due to the Windows Execution policy. In our system, the error was like this. In the below section,…

Install lxml by using pip command on Ubuntu 14.04 LTS

Install lxml by using pip command on Ubuntu 14.04 LTS

lxml is a python library used for processing XML and HTML.In this post we will learn, how to install lxml by using pip command. We will use pip to install lxml on Ubuntu 14.04 LTS. It is important to install dependency prior using pip command to install lxml Install the dependencies. sudo apt-get install libxml2-dev…

plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

While installing uwsgi for Django with Nginx pip install uwsgi . I got this error, “plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory”. Error: *** uWSGI compiling embedded plugins *** [gcc -pthread] plugins/python/python_plugin.o In file included from plugins/python/python_plugin.c:1:0: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory compilation terminated. Solution: To fix this issue,…