我刚刚在我的centos 6.3服务器上安装(并重新安装)python 2.7.3,并在其中内置了cpanel到我系统上的/opt/python2.7.3目录。我还使用--enable-shared标志安装它,然后为它配置setuptools。我现在遇到问题,虽然当我尝试easy_install或使用基本的python thigns如bin / pcreate(我正在构建一个Web应用程序)时抛出MemoryError()的
我确信有可用内存作为免费-m显示系统上有超过2GB的可用内存。以下是MemoryError回溯之一的示例:
Traceback (most recent call last):
File "bin/pcreate", line 8, in <module>
load_entry_point('pyramid==1.4a3', 'console_scripts', 'pcreate')()
File "/home/urcellar/betaurcellar/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
File "/home/urcellar/betaurcellar/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2221, in load_entry_point
File "/home/urcellar/betaurcellar/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954, in load
File "/home/urcellar/betaurcellar/lib/python2.7/site-packages/pyramid-1.4a3-py2.7.egg/pyramid/scripts/pcreate.py", line 5, in <module>
import optparse
File "/opt/python2.7/lib/python2.7/optparse.py", line 90, in <module>
from gettext import gettext
MemoryError
我不确定什么是坏的或做什么...我做了一个干净的安装所以它绝对不是python下载或安装,必须是系统上的其他东西....
由于
编辑:ulimit-acore file size (blocks, -c) 1000000
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127196
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 14335
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited