I have a VM with Ubuntu 18.04.1.
python3 --version says 3.6.5.
I installed pip without any failure (seems like).
Then I tried to install steem-python with
pip install steem
but I get a failure, which looks like:
bla bla bla
...
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for scrypt
Running setup.py clean for scrypt
...
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0iqf8q/scrypt/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-1dMD0Y-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-0iqf8q/scrypt/
Now I'm out of ideas. Can anybody help me to fix this? How can I install it?
My goal is to interact with the steem blockchain.
You will need to install python3-dev on ubuntu (in addition to unixodbc-dev) and it did work.
Please ensure you've installed these:
$ sudo apt-get install python3-dev
$ sudo apt-get install unixodbc-dev
FYI : Python 2.x users, will need python-dev instead.
Related
I keep getting gcc errors when trying to install the python library cryptography.
The main error is:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Note I'm using docker with ubuntu:bionic, and installing the following items:
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
python3 \
python3-pip \
python3-dev \
git \
libffi-dev \
libssl-dev
Here's a longer log output:
At top level:
build/temp.linux-x86_64-3.6/_openssl.c:3555:13: warning: '_ssl_thread_locking_function' defined but not used [-Wunused-function]
static void _ssl_thread_locking_function(int mode, int n, const char *file,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Can't rollback cryptography, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6z_lweq8/cryptography/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-3303ra3b-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6z_lweq8/cryptography/
The command '/bin/sh -c pip3 install --no-cache-dir -r requirements.txt' returned a non-zero code: 1
Thank you to #pobe's comment in How to install cryptography on ubuntu? , I realized that I needed to install libssl1.0 instead! Posted as a separate question because it took a really long time to find that answer.
sudo pip install chaco
I got the following error while installing the chaco
edit
numpy.distutils.system_info.X11NotFoundError: X11 libraries not found.
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-io68CQ/enable/
I couldn't find the same error by googling.
What is the solution?
Regards,
As #jdowner suggested I tried to install prerequisite package enable
sudo pip install enable
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-DtvVEq/enable/
libx11-dev installed.
I do have all the requirement of enable.
The error after installing x11 is:
sudo pip install chaco
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Tf5jwE/enable/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-eM7Q_l/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-Tf5jwE/enable/
note: I am on linux(ubuntu,mint)
I am trying to install jupyter. But after some searching I realised that the error I have when trying to install jupyter is due to notebook.
So here is the error I have when trying to install notebook using sudo pip install notebook.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EKmj0F/scandir/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-OB5xPr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-EKmj0F/scandir/
If you want here is the whole output of pip install notebook.
Thank for answers in advance.
This is the relevant part of the error message:
_scandir.c:14:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
You need the Python headers:
sudo apt-get install python-dev
Your installation process tries to compile an extension with gcc and you seem to be missing the necessary decencies.
My compilation terminated 2 times when installing pyethapp on Ubuntu.
Firstly, I installed packages:
apt-get install build-essential automake pkg-config libtool libffi-dev libgmp-dev
I made virtualenv and tried to install pyethapp inside venv with pip:
pip install mytheapp
but it crashed with 2 following errors:
1.)
#include <openssl/aes.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for scrypt
2.)
scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:25: fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/iceing/.virtualenvs/pyethapp/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3PNrgn/scrypt/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-SSJvgT-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/iceing/.virtualenvs/pyethapp/include/site/python2.7/scrypt" failed with error code 1 in /tmp/pip-build-3PNrgn/scrypt/
This one worked for me:
sudo apt-get install libssl-dev
It seems you need OpenSSL:
apt-get install openssl
First try installing
sudo apt-get install openssl
However, If it still dont work then try installing
sudo apt-get install libssl-dev
By now it should work fine.
I'm working with a django project and now I want to add an image field, django asked me to install Pillow with the command "pip install Pillow",
thie problem is when I run this command, and this one also "sudo install Pillow" I get the message:
gcc: error: build/temp.linux-x86_64-3.2/libImaging/BoxBlur.o: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-otvko5/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5430vf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-otvko5/Pillow
I have tried all the ways that I found on the internet as well as the other ways to install Pillow such as easy_install, but each time I get a new problem.
Try to run the below commands in your linux
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install libevent-dev
Try this:
sudo apt-get install python-pil