GoDaddy的Linux环境是支持python的,但是默认版本是2.4.3 [bash] -bash-3.2$ python -V -bash-3.2$ Python 2.4.3 [/bash] 不过,Deluxe版本的服务器是支持2.7的,GoDaddy给出了使用方法两个方案: http://support.godaddy.com/help/article/7254/can-i-use-python-272-with-my-hosting-account 1). 直接引用python2.7的安装路径:#!/usr/local/bin/python2.7 2). 用virtualenv虚拟python2.7的环境 后者使用起来更加自如些。
在 GoDaddy Deluxe Linux 环境上部署 Django
在 GoDaddy Deluxe Linux 环境上部署 Django
在 GoDaddy Deluxe Linux 环境上部署 Django
GoDaddy的Linux环境是支持python的,但是默认版本是2.4.3 [bash] -bash-3.2$ python -V -bash-3.2$ Python 2.4.3 [/bash] 不过,Deluxe版本的服务器是支持2.7的,GoDaddy给出了使用方法两个方案: http://support.godaddy.com/help/article/7254/can-i-use-python-272-with-my-hosting-account 1). 直接引用python2.7的安装路径:#!/usr/local/bin/python2.7 2). 用virtualenv虚拟python2.7的环境 后者使用起来更加自如些。
Comments on this post are for paid subscribers