• <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

        Use different Python version with virtualenv(使用不同的 Python 版本和 virtualenv)

        <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                  How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                  What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                  How to break out of multiple loops?(如何打破多个循环?)
                  How to put the legend out of the plot(如何将传说从情节中剔除)
                  Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)

                        <tbody id='83hY9'></tbody>
                      <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'>