zhengyu zhengyu - 1 year ago 54
Python Question

Get an error when installing virtualenv for flask

I am learning to use flask for python web framework, however, when I try to

sudo easy_install virtualenv
, I get an error:

[Errno 97] Address family not supported by protocol


how to solve this? My linux is CentOS release 4.3 (Final) and python version is 2.7.3

Answer Source

You can install it from source package...

$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz
$ cd virtualenv-X.X
$ [sudo] python setup.py install