python pip安装mod\wsgi失败,可能是unicode

2024-09-29 17:15:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试用Flask托管一个web应用程序。我有个VPS在运行CentOS。我安装了Apache2.2.26。在

当我在虚拟环境中或在Python主安装上运行pip install mod_wsgi时,我得到以下错误

第一个错误在Python跟踪之前打印出来。。。在

/usr/bin/ld: /home5/arguably/python27/lib/python2.7/config/libpython2.7.a(abstra     ct.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when maki     ng a shared object; recompile with -fPIC

/home5/arguably/python27/lib/python2.7/config/libpython2.7.a: could not read sym     bols: Bad value

collect2: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

这个错误是在查看我的主要Python安装。那不是virtualenv所在的地方

Python错误。。。在

^{pr2}$

那个人在看我的虚拟现实

Python跟踪text = '\n'.join(complete_log)中文件中的行。。在

if store_log:
            log_file_fn = options.log_file
            text = '\n'.join(complete_log)
            try:
                log_file_fp = open_logfile(log_file_fn, 'w')
            except IOError:
                temp = tempfile.NamedTemporaryFile(delete=False)
                log_file_fn = temp.name
                log_file_fp = open_logfile(log_file_fn, 'w')

Tags: textlogconfiglibstatus错误withexit

热门问题