python - Error building uwsgi with pip in virtual environment -


i getting errors when try install uwsgi in virtual environment in centos vps. ultimately, cannot install uwsgi.

i using :

 pip install uwsgi 

and :

pathtovirtualenv/bin/pip install uwsgi 

i following output on terminal:

wwwthecanonworks@thecanonworks.com [~]# ~/thecanonworks/env/bin/pip install uwsgi downloading/unpacking uwsgi   downloading uwsgi-2.0.8.tar.gz (775kb): 775kb downloaded   running setup.py (path:/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py) egg_info package uwsgi  installing collected packages: uwsgi   running setup.py install uwsgi     complete output command /home/wwwthecanonworks/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ry9jum-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks/env/include/site/python2.7:     running install  ---------------------------------------- cleaning up... command /home/wwwthecanonworks/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ry9jum-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks/env/include/site/python2.7 failed error code 1 in /home/wwwthecanonworks/thecanonworks/env/build/uwsgi storing debug log failure in /home/wwwthecanonworks/.pip/pip.log 

here pip log output:

skipping http://projects.unbit.it/downloads/uwsgi-1.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.1.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.10.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.5.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.6.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.7.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.8.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping http://projects.unbit.it/downloads/uwsgi-1.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because externally hosted.     skipping link http://projects.unbit.it/uwsgi/ (from https://pypi.python.org/simple/uwsgi/); not file   using version 2.0.8 (newest of versions: 2.0.8, 2.0.7, 2.0.6, 2.0.5.1, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0, 1.9.21.1, 1.9.21, 1.9.20, 1.9.19, 1.9.18.2, 1.9.18.1, 1.9.18, 1.9.17.1, 1.9.17, 1.9.16, 1.9.15, 1.9.14, 1.9.13, 1.9.12, 1$   downloading url https://pypi.python.org/packages/source/u/uwsgi/uwsgi-2.0.8.tar.gz#md5=356b71060aa4c1f0e888dbca03567bd5 (from https://pypi.python.org/simple/uwsgi/)   running setup.py (path:/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py) egg_info package uwsgi     running egg_info     creating pip-egg-info/uwsgi.egg-info     writing pip-egg-info/uwsgi.egg-info/pkg-info     writing top-level names pip-egg-info/uwsgi.egg-info/top_level.txt     writing dependency_links pip-egg-info/uwsgi.egg-info/dependency_links.txt     writing manifest file 'pip-egg-info/uwsgi.egg-info/sources.txt'     warning: manifest_maker: standard file '-c' not found      reading manifest file 'pip-egg-info/uwsgi.egg-info/sources.txt'     writing manifest file 'pip-egg-info/uwsgi.egg-info/sources.txt'   source in /tmp/pip_build_wwwthecanonworks/uwsgi has version 2.0.8, satisfies requirement uwsgi installing collected packages: uwsgi   running setup.py install uwsgi     running command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exe$     running install     complete output command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _$     running install  ---------------------------------------- cleaning up...   removing temporary dir /tmp/pip_build_wwwthecanonworks... command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_wwwthecanonworks/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" instal$ exception information: traceback (most recent call last):   file "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main     status = self.run(options, args)   file "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 283, in run     requirement_set.install(install_options, global_options, root=options.root_path)   file "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1435, in install     requirement.install(install_options, global_options, *args, **kwargs)   file "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 706, in install     cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=false)   file "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 697, in call_subprocess     % (command_desc, proc.returncode, cwd))  installationerror: command /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/wwwthecanonworks/thecanonworks2/thecanonworks/env/build/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lman7i-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/include/site/python2.7 failed error code 1 in /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/build/uwsgi 

here virtualenv bin directory :

wwwthecanonworks@thecanonworks.com [~/thecanonworks/env]# ls ./  ../  bin/  include/  lib/ wwwthecanonworks@thecanonworks.com [~/thecanonworks/env]# cd bin wwwthecanonworks@thecanonworks.com [~/thecanonworks/env/bin]# ls ./  ../  activate  activate.csh  activate.fish  activate_this.py  easy_install*  easy_install-2.7*  pip*  pip2*  pip2.7*  python@  python2@  python2.7* 

update:

i have tried number of different things , still can't uwsgi installed.

try install following packages before installing uwsgi:

sudo apt-get -y install build-essential python-dev zlib1g-dev libssl-dev 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -