easy_install matplotlib
Bio
June 28, 2011 9:12 PM
Hi Richard, Thank you for your reply. I have to admit I am extremely
reluctant to install a second version of Python on my system. When I
originally set up nltk on my previous Mac I unknowingly installed a
second version of Python before I tried to install nltk. It took a lot
of work to get the system to work and I still have problems because of
that dual Python install. What I am hoping to do is install numpy and
matplotlib with just the single Python 2.6.1 on my system without
having to install 2.7.1 as well. If I understood your post you are
recommending doing a Python 2.7.1 install before installing numpy and
matplotlib. Is it possible to install numpy and matplotlib with 2.6.1?
I did an easy_install and numpy seemed to install although there were
some error messages, the matplotlib did seem to easy_install at all.
Sincerely, George
Richard Careaga
June 28, 2011 8:44 PM
June 28, 2011 7:30 PM
If that doesn't help, use macports (a dmg is available for macports installation)
$ sudo port install python-numpy
a dependency tree is built up for other libraries used by matplotlib such as ATLAS, BOOST, etc.
I hope that helps...
> --
> You received this message because you are subscribed to the Google Groups "nltk-users" group.
> To post to this group, send email to nltk-...@googlegroups.com.
> To unsubscribe from this group, send email to nltk-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nltk-users?hl=en.
>
-bash: cd: /usr/local/Cellar/python/2.6.1/lib/python2.6/site-packages/
Bio
June 29, 2011 1:47 PM
Hi Richard, Thank you for your response. Unfortunately I am still
unable to get working versions of numpy or matplotlib. When I perform
an easy_install for both numpy and matplotlib the install proceeds but
several error messages occur. Then when I try to use matplotlib I get
error messages indicating the matplotlib is not present. Here is the
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.6/site-packages/nltk/text.py", line 461, in
dispersion_plot
dispersion_plot(self, words)
File "/Library/Python/2.6/site-packages/nltk/draw/dispersion.py",
line 25, in dispersion_plot
raise ValueError('The plot function requires the matplotlib
package (aka pylab).'
ValueError: The plot function requires the matplotlib package (aka
pylab).See http://matplotlib.sourceforge.net/
I also tried to use step 7 from your link but I couldn't get terminal
to accept any of the commands you cite. Here is my terminal output
from the first cd command you cite:
Last login: Wed Jun 29 13:33:06 on ttys000
George-Ortons-Mac-Pro:~ BioASys$ cd /usr/local/Cellar/python/2.6.1/lib/
python2.6/site-packages/matplotlib/numerix/ma
-bash: cd: /usr/local/Cellar/python/2.6.1/lib/python2.6/site-packages/
matplotlib/numerix/ma: No such file or directory
George-Ortons-Mac-Pro:~ BioASys$
So unfortunately I am at a loss on how to proceed. Thanks again,
George
Richard Careaga
June 28, 2011 11:23 PM
-bash: cd: /Users/BioASys/Downloads/matplotlib-1.0.1-python.org-py2.6-macosx10.3.dmg
because the file
matplotlib-1.0.1-python.org-py2.6-macosx10.3.dmg
is a disk image, which is not mounted as a directory until you do so
explicitly. MacPorts is not the right tool to install Python packages;
you need easy_install.
Everyone has to go through the Unix 101 learning curve and it's no rap
on you that you haven't yet, but until you do getting to the bottom of
why programs or packages won't install correctly is going to be a never
ending series of frustrations and getting lost.
When I figure out how to install 1.0.1, I'll update my recipe, but that
probably won't be until after I get back to actively using nltk this
fall. In the meantime, the best advice I can offer is to stay away from
the command line and use pre-fab packages like the one Denzil
recommends. You'll still need to know how to set your shell environment
variables so that the install has the correct PYTHONPATH, however.
I wish I could be more helpful.
Hi Correa, I've looked through the site but I still don't get most of
it. It looks like I would be downloading an additional (2.7.1) version
of Python along with several other packages. I am extremely hesitant
to download and install an additional version of Python on my system.
I accidentally did that on my old mac and had no end to the problems
it caused me. Am I correct in believing that if I do the enthought
download that I will be installing a second Python 2.7.1 on my system?
Thanks for your help. Sincerely, George
On Jun 29, 1:56 pm, Correa Denzil <mcen...@gmail.com> wrote:
> There's very little to make sense. You can easily navigate the site and read
> around a little bit especially the FAQ's :http://www.enthought.com/products/epdfaq.php#EPDvsETS
>
> An academic version of EPD is available for free download here:http://www.enthought.com/products/edudownload.php
>
> It contains bundles of most python packages including numpy and matplot lib.
> Give it a shot.
>
> --Regards,
> Denzil
>
>
>
> On Wed, Jun 29, 2011 at 11:19 PM, Bio <Sel...@bioasys.net> wrote:
> > provided but frankly I couldn't make heads or tails out of it.
bspr...@me.com
June 29, 2011 2:18 PM
For what it's worth, I'm having exactly the same problem -- same two
error messages (exc. for different path) -- even though matplotlib,
numpy, and nltk are in the same directory and I've imported each of
them. I did have to do a sys.path.append() to get Python to admit the
modules exist, which is a bit odd given that they're in the site-
packages for the 2.7 version that's running, and the old 2.6 version
is *not* in the path at all. --- Bill S.
Bio
June 29, 2011 1:47 PM
Hi Richard, Thank you for your response. Unfortunately I am still
unable to get working versions of numpy or matplotlib. When I perform
an easy_install for both numpy and matplotlib the install proceeds but
several error messages occur. Then when I try to use matplotlib I get
error messages indicating the matplotlib is not present. Here is the
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.6/site-packages/nltk/text.py", line 461, in
dispersion_plot
dispersion_plot(self, words)
File "/Library/Python/2.6/site-packages/nltk/draw/dispersion.py",
line 25, in dispersion_plot
raise ValueError('The plot function requires the matplotlib
package (aka pylab).'
ValueError: The plot function requires the matplotlib package (aka
pylab).See http://matplotlib.sourceforge.net/
I also tried to use step 7 from your link but I couldn't get terminal
to accept any of the commands you cite. Here is my terminal output
from the first cd command you cite:
Last login: Wed Jun 29 13:33:06 on ttys000
George-Ortons-Mac-Pro:~ BioASys$ cd /usr/local/Cellar/python/2.6.1/lib/
python2.6/site-packages/matplotlib/numerix/ma
-bash: cd: /usr/local/Cellar/python/2.6.1/lib/python2.6/site-packages/
matplotlib/numerix/ma: No such file or directory
George-Ortons-Mac-Pro:~ BioASys$
So unfortunately I am at a loss on how to proceed. Thanks again,
George
Richard Careaga
June 28, 2011 11:23 PM
What happened is that I read somewhere that errors might happen because the
version is not 2.6
So, I downloaded and run installation file for python2.6
I am now getting
Last login: Mon Jun 27 19:11:13 on ttys000
ool-4a597042:~ DMITRY$ python
dyld: unknown required load command 0x80000022
Trace/BPT trap
ool-4a597042:~ DMITRY$
I appreciate if someone could shed light on this.
Regards
Dmitry
--
Craig Hagerman
July 3, 2011 1:10 PM
Correa Denzil
June 30, 2011 5:22 AM
Dmitry :
I have made this suggestion earlier in the thread. Please use Enthought's Python Distribution(EPD).
--Regards,
Denzil
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To post to this group, send email to nltk-...@googlegroups.com.
To unsubscribe from this group, send email to nltk-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nltk-users?hl=en.
Dmitry Gorbachev
June 29, 2011 10:21 PM
I also wanted to install nltk. Actually I did this on the prebuilt Mac python
5.3 or something. I downloaded nltk modules via nltk.download() OK.
Then I tried to run: from nltk.book import *
bspr...@me.com
June 29, 2011 2:18 PM
For what it's worth, I'm having exactly the same problem -- same two
error messages (exc. for different path) -- even though matplotlib,
numpy, and nltk are in the same directory and I've imported each of
them. I did have to do a sys.path.append() to get Python to admit the
modules exist, which is a bit odd given that they're in the site-
packages for the 2.7 version that's running, and the old 2.6 version
is *not* in the path at all. --- Bill S.
Bio
June 29, 2011 1:47 PM
Hi Richard, Thank you for your response. Unfortunately I am still
unable to get working versions of numpy or matplotlib. When I perform
an easy_install for both numpy and matplotlib the install proceeds but
several error messages occur. Then when I try to use matplotlib I get
error messages indicating the matplotlib is not present. Here is the
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.6/site-packages/nltk/text.py", line 461, in
dispersion_plot
dispersion_plot(self, words)
File "/Library/Python/2.6/site-packages/nltk/draw/dispersion.py",
line 25, in dispersion_plot
raise ValueError('The plot function requires the matplotlib
package (aka pylab).'
ValueError: The plot function requires the matplotlib package (aka
pylab).See http://matplotlib.sourceforge.net/
"I got this problem too,than I fount I should install the dependencies first.(I use python 2.7 64bit) Here's a list of the programs you can install on windows: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And you'll need the following dependencies: Requires numpy, dateutil, pytz, pyparsing, six" |
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.