<i id='98VNF'><tr id='98VNF'><dt id='98VNF'><q id='98VNF'><span id='98VNF'><b id='98VNF'><form id='98VNF'><ins id='98VNF'></ins><ul id='98VNF'></ul><sub id='98VNF'></sub></form><legend id='98VNF'></legend><bdo id='98VNF'><pre id='98VNF'><center id='98VNF'></center></pre></bdo></b><th id='98VNF'></th></span></q></dt></tr></i><div id='98VNF'><tfoot id='98VNF'></tfoot><dl id='98VNF'><fieldset id='98VNF'></fieldset></dl></div>
    • <bdo id='98VNF'></bdo><ul id='98VNF'></ul>

      <small id='98VNF'></small><noframes id='98VNF'>

    1. <legend id='98VNF'><style id='98VNF'><dir id='98VNF'><q id='98VNF'></q></dir></style></legend>
    2. <tfoot id='98VNF'></tfoot>
      1. 在虚拟环境中使用 pip 构建 uwsgi 时出错

        时间:2023-09-14
          • <small id='PITgM'></small><noframes id='PITgM'>

              • <legend id='PITgM'><style id='PITgM'><dir id='PITgM'><q id='PITgM'></q></dir></style></legend>
                <i id='PITgM'><tr id='PITgM'><dt id='PITgM'><q id='PITgM'><span id='PITgM'><b id='PITgM'><form id='PITgM'><ins id='PITgM'></ins><ul id='PITgM'></ul><sub id='PITgM'></sub></form><legend id='PITgM'></legend><bdo id='PITgM'><pre id='PITgM'><center id='PITgM'></center></pre></bdo></b><th id='PITgM'></th></span></q></dt></tr></i><div id='PITgM'><tfoot id='PITgM'></tfoot><dl id='PITgM'><fieldset id='PITgM'></fieldset></dl></div>
                  <bdo id='PITgM'></bdo><ul id='PITgM'></ul>
                  <tfoot id='PITgM'></tfoot>
                    <tbody id='PITgM'></tbody>

                  本文介绍了在虚拟环境中使用 pip 构建 uwsgi 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  当我尝试在我的 Centos VPS 的虚拟环境中安装 uwsgi 时出现错误.最终,我无法安装 uwsgi.

                  I am getting errors when I try to install uwsgi in my virtual environment in my Centos VPS. Ultimately, I cannot install uwsgi.

                  我正在使用:

                   pip install uwsgi
                  

                  还有:

                  pathtovirtualenv/bin/pip install uwsgi
                  

                  我在终端上得到以下输出:

                  I get the following output on the 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 for package uwsgi
                  
                  Installing collected packages: uwsgi
                    Running setup.py install for uwsgi
                      Complete output from 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('
                  ', '
                  '), __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('
                  ', '
                  '), __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 with error code 1 in /home/wwwthecanonworks/thecanonworks/env/build/uwsgi
                  Storing debug log for failure in /home/wwwthecanonworks/.pip/pip.log
                  

                  这是 pip 日志输出:

                  Here is the pip log output:

                  Skipping http://projects.unbit.it/downloads/uwsgi-1.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.1.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.10.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.2.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.3.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.5.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.6.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.7.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.8.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping http://projects.unbit.it/downloads/uwsgi-1.4.tar.gz (from https://pypi.python.org/simple/uwsgi/) because it is externally hosted.
                      Skipping link http://projects.unbit.it/uwsgi/ (from https://pypi.python.org/simple/uwsgi/); not a 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 from 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 for 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 to pip-egg-info/uWSGI.egg-info/top_level.txt
                      writing dependency_links to 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, which satisfies requirement uwsgi
                  Installing collected packages: uwsgi
                    Running setup.py install for 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('
                  ', '
                  '), __file__, 'exe$
                      running install
                      Complete output from 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('
                  ', '
                  '), _$
                      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('
                  ', '
                  '), __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('
                  ', '
                  '), __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 with error code 1 in /home/wwwthecanonworks/thecanonworks2/thecanonworks/env/build/uwsgi
                  

                  这是我的 virtualenv bin 目录:

                  here is my 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*
                  

                  更新:

                  我尝试了很多不同的方法,但仍然无法安装 uwsgi.

                  I have tried a number of different things and still can't get uwsgi installed.

                  推荐答案

                  安装uwsgi前尝试安装以下包:

                  Try to install the following packages before installing uwsgi:

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

                  这篇关于在虚拟环境中使用 pip 构建 uwsgi 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:sudo python 运行旧的python版本 下一篇:如何在 Python 2.6 CentOS 中安装 MySQLdb

                  相关文章

                  最新文章

                  <small id='vHikT'></small><noframes id='vHikT'>

                    <bdo id='vHikT'></bdo><ul id='vHikT'></ul>

                • <i id='vHikT'><tr id='vHikT'><dt id='vHikT'><q id='vHikT'><span id='vHikT'><b id='vHikT'><form id='vHikT'><ins id='vHikT'></ins><ul id='vHikT'></ul><sub id='vHikT'></sub></form><legend id='vHikT'></legend><bdo id='vHikT'><pre id='vHikT'><center id='vHikT'></center></pre></bdo></b><th id='vHikT'></th></span></q></dt></tr></i><div id='vHikT'><tfoot id='vHikT'></tfoot><dl id='vHikT'><fieldset id='vHikT'></fieldset></dl></div>
                  <legend id='vHikT'><style id='vHikT'><dir id='vHikT'><q id='vHikT'></q></dir></style></legend>

                      <tfoot id='vHikT'></tfoot>