<div dir="ltr"><div><div>Erik,<br></div>Indeed it worked. Thanks!<br></div>Daniel<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-21 14:56 GMT-03:00 Erik Bray <span dir="ltr"><<a href="mailto:embray@stsci.edu" target="_blank">embray@stsci.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br>
<br>
For installing most non-trivial Python packages (i.e. anything containing C code) on Linux you will need the Python-dev package, which is not always installed by default:<br>
<br>
$ sudo apt-get install python-dev<br>
<br>
Erik<div><div class="h5"><br>
<br>
On 12/21/2015 12:50 PM, Daniel M. Faes wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Dear all,<br>
I'm trying to install astropy in my Ubuntu system, and I getting the following<br>
error (below).<br>
Cheers,<br>
Daniel<br>
<br>
<br>
- - -<br>
creating build/temp.linux-x86_64-2.7/astropy<br>
<br>
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall<br>
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c astropy/_compiler.c -o<br>
build/temp.linux-x86_64-2.7/astropy/_compiler.o<br>
<br>
astropy/_compiler.c:1:20: fatal error: Python.h: File or directory not found<br>
<br>
  #include <Python.h><br>
<br>
                     ^<br>
<br>
compilation terminated.<br>
<br>
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1<br>
<br>
----------------------------------------<br>
Cleaning up...<br>
Command /usr/bin/python -c "import setuptools,<br>
tokenize;__file__='/tmp/pip_build_root/astropy/setup.py';exec(compile(getattr(tokenize,<br>
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"<br>
install --record /tmp/pip-nXWLvE-record/install-record.txt<br>
--single-version-externally-managed --compile failed with error code 1 in<br>
/tmp/pip_build_root/astropy<br>
Traceback (most recent call last):<br>
   File "/usr/bin/pip", line 9, in <module><br>
     load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()<br>
   File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 235, in main<br>
     return command.main(cmd_args)<br>
   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main<br>
     text = '\n'.join(complete_log)<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 69: ordinal<br>
not in range(128)<br>
= = =<br>
<br>
<br></div></div>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org" target="_blank">AstroPy@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/astropy</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org" target="_blank">AstroPy@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/astropy</a><br>
</blockquote></div><br></div>