首先我感谢你的帮助我在Openshift上创建了一个应用程序(创建方法请参阅https://github.com/drivard/openshift-django-mysql)现在我想安装pip和3part应用程序(比如hitconter),我的步骤如下:1.ssh到远程主机2. cd $ OPENSHIFT_TMP_DIR 3. wget http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz 4. tar zxf pip- 1.1.tar.gz 5. cd pip-1.1 6. python setup.py install(shell提到没有写权限)
那么如何在Openshift中安装pip并使用pip来安装app?
将所需的应用添加到setup.py文件.例如:
#!/usr/bin/env python
from setuptools import setup
setup(
name='YourAppName',
version='1.0',
description='OpenShift App',
author='Your Name',
author_email='example@example.com',
url='http://www.python.org/sigs/distutils-sig/',
# Your 3part apps:
install_requires=['Django>=1.3', 'pil', 'south'],
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1222 次 |
| 最近记录: |