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 https://pypi.python.org/packages/e0/fb/13680584b3781faf9daeb5c4728e171d89357cb00cdf1cad6b4e30c8cc8/paho-mqtt-1.2.1.tar.gz#md5=b85a8315b11c51d59859ac88d901ec7 (from https://pypi.python.org/simple/paho-mqtt/)
Running setup.py (path:/tmp/pip-build-oJel7Q/paho-mqtt/setup.py) egg_info for pckage paho-mqtt
Running command python setup.py egg_info
Error [Errno 12] Out of memory while executing command python setup.py egg_ino
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 324, in rn
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepar_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepae_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_fr_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 439, in ru_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/site-packages/pip/utils/init.py", line 667, in cal_subprocess
cwd=cwd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 916, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Out of memorywhat'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.