首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在centos上安装虚拟环境中的active python

如何在centos上安装虚拟环境中的active python
EN

Stack Overflow用户
提问于 2013-07-03 09:09:21
回答 1查看 649关注 0票数 0

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

我有这个问题,就像在这篇文章中回答https://stackoverflow.com/a/7458717/1958218一样

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

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

我想使用像这样的东西

代码语言:javascript
复制
/virtualenv/bin/ActivePython-2.6/bin/pypm install mysql-python
EN

回答 1

Stack Overflow用户

发布于 2013-07-03 09:48:08

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

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17438223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档