[Numpy-discussion] Sources more confusing in Python
Steve Waterbury
waterbug at pangalactic.us
Sun Apr 7 17:25:33 EDT 2013
On 04/07/2013 05:02 PM, Chris Barker - NOAA Federal wrote:
> On Sun, Apr 7, 2013 at 8:06 AM, Daπid <davidmenhur at gmail.com> wrote:
>> On 7 April 2013 16:53, Happyman <bahtiyor_zohidov at mail.ru> wrote:
>
>> $pip install numpy # to install package "numpy"
>
> as a warning, last I checked pip did not support binary installs ...
Guess you didn't check very recently ;) -- pip does indeed
support binary installs.
It's trivial to check:
waterbug at boson:~$ mkvirtualenv pip-test
New python executable in pip-test/bin/python
Installing
distribute.............................................................................................................................................................................................done.
Installing pip...............done.
<snip other virtualenvwrapper output>
(pip-test)waterbug at boson:~$ cdvirtualenv
(pip-test)waterbug at boson:~/envs/pip-test$ pip install PIL
Downloading/unpacking PIL
Downloading PIL-1.1.7.tar.gz (506Kb): 506Kb downloaded
Running setup.py egg_info for package PIL
WARNING: '' not a valid package name; please use only.-separated
package names in setup.py
Installing collected packages: PIL
Running setup.py install for PIL
WARNING: '' not a valid package name; please use only.-separated
package names in setup.py
building '_imaging' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ
-I/usr/local/include/freetype2 -IlibImaging
-I/home/waterbug/envs/pip-test/include -I/usr/local/include
-I/usr/include -I/usr/include/python2.7 -c _imaging.c -o
build/temp.linux-i686-2.7/_imaging.o
<snip lots of compilation output>
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
--------------------------------------------------------------------
*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
To check the build, run the selftest.py script.
changing mode of build/scripts-2.7/pilfont.py from 664 to 775
changing mode of build/scripts-2.7/pildriver.py from 664 to 775
changing mode of build/scripts-2.7/pilfile.py from 664 to 775
changing mode of build/scripts-2.7/pilconvert.py from 664 to 775
changing mode of build/scripts-2.7/pilprint.py from 664 to 775
changing mode of /home/waterbug/envs/pip-test/bin/pilfont.py to 775
changing mode of /home/waterbug/envs/pip-test/bin/pildriver.py to 775
changing mode of /home/waterbug/envs/pip-test/bin/pilfile.py to 775
changing mode of /home/waterbug/envs/pip-test/bin/pilconvert.py to 775
changing mode of /home/waterbug/envs/pip-test/bin/pilprint.py to 775
Successfully installed PIL
Cleaning up...
(pip-test)waterbug at boson:~/envs/pip-test$ python
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named imaging
>>> import PIL
>>> PIL.__file__
'/home/waterbug/envs/pip-test/local/lib/python2.7/site-packages/PIL/__init__.pyc'
>>>
Cheers,
Steve
More information about the NumPy-Discussion
mailing list