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

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

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

    1. <legend id='dp2fW'><style id='dp2fW'><dir id='dp2fW'><q id='dp2fW'></q></dir></style></legend>
      <tfoot id='dp2fW'></tfoot>
      1. 使用 pip 安装特定的软件包版本

        时间:2023-08-18

          <tbody id='Ntuz7'></tbody>

            <bdo id='Ntuz7'></bdo><ul id='Ntuz7'></ul>
            1. <small id='Ntuz7'></small><noframes id='Ntuz7'>

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

              • <legend id='Ntuz7'><style id='Ntuz7'><dir id='Ntuz7'><q id='Ntuz7'></q></dir></style></legend>
                • 本文介绍了使用 pip 安装特定的软件包版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试安装 MySQL_python 的 1.2.2 版,使用使用 --no-site-packages 选项创建的全新 virtualenv.PyPi 中显示的当前版本是 1.2.3.有没有办法安装旧版本?我试过了:

                  I am trying to install version 1.2.2 of MySQL_python, using a fresh virtualenv created with the --no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the older version? I have tried:

                  pip install MySQL_python==1.2.2
                  

                  然而,安装后,它仍然在站点包中显示MySQL_python-1.2.3-py2.6.egg-info.这是这个包特有的问题,还是我做错了什么?

                  However, when installed, it still shows MySQL_python-1.2.3-py2.6.egg-info in the site packages. Is this a problem specific to this package, or am I doing something wrong?

                  推荐答案

                  TL;DR:

                  • pip install -Iv(即pip install -Iv MySQL_python==1.2.2)

                  首先,我发现您尝试执行的操作存在两个问题.由于您已经安装了版本,您应该卸载当前现有的驱动程序或使用 pip install -I MySQL_python==1.2.2

                  First, I see two issues with what you're trying to do. Since you already have an installed version, you should either uninstall the current existing driver or use pip install -I MySQL_python==1.2.2

                  但是,您很快就会发现这行不通.如果您查看 pip 的安装日志,或者执行 pip install -Iv MySQL_python==1.2.2,您会发现 PyPI URL 链接不适用于 MySQL_python v1.2.2.你可以在这里验证:http://pypi.python.org/pypi/MySQL-python/1.2.2

                  However, you'll soon find out that this doesn't work. If you look at pip's installation log, or if you do a pip install -Iv MySQL_python==1.2.2 you'll find that the PyPI URL link does not work for MySQL_python v1.2.2. You can verify this here: http://pypi.python.org/pypi/MySQL-python/1.2.2

                  由于 sourceforge.net 最近的升级和 PyPI 的陈旧 URL,下载链接 404 和回退 URL 链接无限重定向.

                  The download link 404s and the fallback URL links are re-directing infinitely due to sourceforge.net's recent upgrade and PyPI's stale URL.

                  因此要正确安装驱动程序,您可以按照以下步骤操作:

                  So to properly install the driver, you can follow these steps:

                  pip uninstall MySQL_python
                  pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download
                  

                  这篇关于使用 pip 安装特定的软件包版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:无法通过 socket '/var/mysql/mysql.sock' 连接到本 下一篇:如何在 MySQL 中声明一个变量?

                  相关文章

                  最新文章

                • <tfoot id='804iB'></tfoot>

                  <legend id='804iB'><style id='804iB'><dir id='804iB'><q id='804iB'></q></dir></style></legend>
                    <bdo id='804iB'></bdo><ul id='804iB'></ul>
                  1. <small id='804iB'></small><noframes id='804iB'>

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