Error 12 out of memory pip install paho_mqtt

  • Hi. I tried install paho_mqtt on python 2.7, but see this (--verbose):

    Downloading from URL (from
    Running (path:/tmp/pip-build-oJel7Q/paho-mqtt/ egg_info for pckage paho-mqtt
    Running command python egg_info
    Error [Errno 12] Out of memory while executing command python egg_ino
    Cleaning up...
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/pip/", line 215, in main
    status =, args)
    File "/usr/lib/python2.7/site-packages/pip/commands/", line 324, in rn
    File "/usr/lib/python2.7/site-packages/pip/req/", line 380, in prepar_files
    File "/usr/lib/python2.7/site-packages/pip/req/", line 634, in _prepae_file
    File "/usr/lib/python2.7/site-packages/pip/req/", line 129, in prep_fr_dist
    File "/usr/lib/python2.7/site-packages/pip/req/", line 439, in ru_egg_info
    command_desc='python egg_info')
    File "/usr/lib/python2.7/site-packages/pip/utils/", line 667, in cal_subprocess
    cwd=cwd, env=env)
    File "/usr/lib/python2.7/", line 390, in init
    errread, errwrite)
    File "/usr/lib/python2.7/", line 916, in _execute_child = os.fork()
    OSError: [Errno 12] Out of memory

    what's my mistake?

  • Many others fail the same way, it's just not enough juice. If the package does not have C code to compile you may try to just use it "as is" from directory in PYTHONPATH.

Log in to reply

Looks like your connection to Onion Community was lost, please wait while we try to reconnect.