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

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

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)

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