如何在centos上的虚拟环境中安装活动python



如何在虚拟环境中安装ACtive python

我在这篇文章的答案中有这个问题https://stackoverflow.com/a/7458717/1958218

现在,通过在centos上使用活动python解决了这个问题。但对于django,我使用的是virtualenv,我在那里遇到了同样的问题。但问题是我并没有活跃的python。

我尝试激活虚拟环境,然后使用此命令/opt/ActivePython-2.6/bin/pypm install mysql-python但相同错误

我想用之类的

/virtualenv/bin/ActivePython-2.6/bin/pypm install mysql-python

您可以告诉virtualenv您的python解释器在哪里

Usage: virtualenv [OPTIONS] DEST_DIR
Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity
  -q, --quiet           Decrease verbosity
  -p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python2.5 will use the python2.5 interpreter
                        to create the new environment.  The default is the
                        interpreter that virtualenv was installed with

最新更新