您的位置:首页 > 编程语言 > Python开发

Mac OS X10.9 mod_python3.5.0 安装注意事项

2014-01-25 14:04 901 查看
Mac OS X10.9自带有Apache环境, 我们需要安装Python3.3, Mod_python3.5.0(支持Python3.3)

Python3.3的安装见Mac OS X10.9安装的Python2.7升级Python3.3步骤详解

按说明文件README.md中的步骤

```shell

$ ./configure

$ make

$ sudo make install

$ make test

```
注意事项:

1. 在执行完./configure命令后, 需要个性src目录下的makefile文件

修改为

CPPFLAGS=-I/System/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -DNDEBUG

2. 再修改

File "/System/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/mod_python/version.py", line 3

    version = "fatal: Not a git repository (or any of the parent directories): .git

                                                                                  ^

SyntaxError: EOL while scanning string literal

为 version = "fatal: Not a git repository (or any of the parent directories): .git 3.5.0-"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mac os x python