V
V
ValdemarTXT2018-08-10 12:39:42
Python
ValdemarTXT, 2018-08-10 12:39:42

Installing ujson library for Python3.7 on Ubuntu 18.04?

Hello, after executing the following command in venv'e:
pip install ujson I
catch the following error:
Command "/home/user/projectname/venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/ pip-install-n3llo159/ujson/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n' );f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-1m3j6w9l/install-record.txt --single-version-externally-managed - -compile --install-headers /home/user/projectname/venv/include/site/python3.7/ujson" failed with error code 1 in /tmp/pip-install-n3llo159/ujson/
I'm pretty sure I broke something- then in the system itself, and not in venv'e, because the same error occurs in other projects when installing ujson. The rest are installed without problems.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2018-08-10
@netpastor

Try sudo apt-get install python3-dev first

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question