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

    • <bdo id='J6gN6'></bdo><ul id='J6gN6'></ul>
      <tfoot id='J6gN6'></tfoot>

    1. <legend id='J6gN6'><style id='J6gN6'><dir id='J6gN6'><q id='J6gN6'></q></dir></style></legend>
    2. <small id='J6gN6'></small><noframes id='J6gN6'>

        使用不同的 Python 版本和 virtualenv

        时间:2024-04-22

        <small id='0EXOs'></small><noframes id='0EXOs'>

        <legend id='0EXOs'><style id='0EXOs'><dir id='0EXOs'><q id='0EXOs'></q></dir></style></legend>
          <tbody id='0EXOs'></tbody>

            • <bdo id='0EXOs'></bdo><ul id='0EXOs'></ul>

                <i id='0EXOs'><tr id='0EXOs'><dt id='0EXOs'><q id='0EXOs'><span id='0EXOs'><b id='0EXOs'><form id='0EXOs'><ins id='0EXOs'></ins><ul id='0EXOs'></ul><sub id='0EXOs'></sub></form><legend id='0EXOs'></legend><bdo id='0EXOs'><pre id='0EXOs'><center id='0EXOs'></center></pre></bdo></b><th id='0EXOs'></th></span></q></dt></tr></i><div id='0EXOs'><tfoot id='0EXOs'></tfoot><dl id='0EXOs'><fieldset id='0EXOs'></fieldset></dl></div>
              1. <tfoot id='0EXOs'></tfoot>
                • 本文介绍了使用不同的 Python 版本和 virtualenv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I have a Debian system currently running with python 2.5.4. I got virtualenv properly installed, everything is working fine. Is there a possibility that I can use a virtualenv with a different version of Python?

                  I compiled Python 2.6.2 and would like to use it with some virtualenv. Is it enough to overwrite the binary file? Or do I have to change something in respect to the libraries?

                  解决方案

                  Just use the --python (or short -p) option when creating your virtualenv instance to specify the Python executable you want to use, e.g.:

                  virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
                  

                  N.B. For Python 3.3 or later, refer to The Aelfinn's answer below.

                  这篇关于使用不同的 Python 版本和 virtualenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Python 的 super() 如何与多重继承一起工作? 下一篇:内置 open 函数中模式 a、a+、w、w+ 和 r+ 的区别?

                  相关文章

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

                    <legend id='83hY9'><style id='83hY9'><dir id='83hY9'><q id='83hY9'></q></dir></style></legend>

                        <bdo id='83hY9'></bdo><ul id='83hY9'></ul>

                      <small id='83hY9'></small><noframes id='83hY9'>