How to use multiple versions of Python without uninstallation

前端 未结 15 1553
醉梦人生
醉梦人生 2021-02-05 14:11

I am faced with a unique situation, slightly trivial but painful.

I need to use Python 2.6.6 because NLTK is not ported to Python 3 (that\'s what I could gather).

15条回答
  •  粉色の甜心
    2021-02-05 15:09

    Use virtualenv, which allows you to create dynamic python environments. Check out python's page here.

    http://pypi.python.org/pypi/virtualenv

    Related answered question on installing packages inside virtualenv on windows (as opposed to system-wide) Can I install Python windows packages into virtualenvs?

提交回复
热议问题