Cannot install ggplot with anaconda

19,250

Solution 1

Have you tried looking at www.binstar.org? Type in ggplot in the search bar (I have already done so and it pops up with different options, one of which is a win32 channel. Since I have already looked at it this is what you should type into the command shell:

    conda install -c https://conda.binstar.org/bokeh ggplot

I have not tested since I have win64 but this should work

UPDATE: The link above is now broken try this instead

    conda install -c conda-forge ggplot 

Solution 2

I think ggplot is simply not packaged for Anaconda as conda search ggplot doesn't find anything. How it can be easily installed via pip -- pip install ggplot.

Solution 3

I ran across the same issue when installing ggplot. None of the methods worked, eventually I reinstalled anaconda. Then everything works smoothly.

Share:
19,250
user4352158
Author by

user4352158

Updated on June 08, 2022

Comments

  • user4352158
    user4352158 almost 2 years

    I want to be able to use geom_smooth in ggplot. However, when I typed conda install ggplot, I get the error no packages found in current win-32 channels matching ggplot. Anyone know what is going on?

  • user4352158
    user4352158 about 9 years
    Even if I try pip install ggplot it installs successfully, but I still can't use ggplot in PyCharm. When I type import ggplot as gg, it says no module named ggplot
  • user4352158
    user4352158 about 9 years
    I finally got ggplot to work, I had to get it by typing conda install -c https://conda.binstar.org/bokeh ggplot However, I am unable to display the plot from ggplot if I use from ggplot import * and then try something like plt=ggplot(data=df,aes(x=x, y=y)) +\ geom_line() +\ stat_smooth(colour='blue', span=0.2) and then plt.show()
  • stackunderflow
    stackunderflow over 8 years
    I downvoted here bec the solution of @jfish003 worked perfectly for me. and now I draw using the ggplot on the Ipython notebook. So please, don't give uncertain answers that will misleads others like me for i spent 15 hours looking for answers. I even posted a new question on this issue.
  • Paul M.
    Paul M. over 8 years
    jfish's answer shows a non-standard way to install ggplot from anaconda. The pip based solution I offered is perfectly correct. If you don't understand how something works please don't downvote.
  • Mike Williamson
    Mike Williamson about 8 years
    @PaulM. I think underflow's point was that the OP, indirectly through verbiage and tags, made it clear s/he wanted an Anaconda solution, if available. As underflow pointed out, there is an Anaconda solution, and it was provided by jfish. Therefore, that solution is simply "better".
  • Paul M.
    Paul M. about 8 years
    @MikeWilliamson stackunderflow didn't just express a preference for the Anaconda solution, but actually down voted an answer that was correct. When someone suggests that the standard Python solution is "misleading" that suggests ignorance of the tools they are using.
  • Greg
    Greg almost 8 years
    the conda.binstar.org/bokeh ggplot is not maintained by the same people who build ggplot, so it is not the latest version. for the latest version, use pip. (I wrote ggplot)
  • eric_kernfeld
    eric_kernfeld almost 6 years
    It seems like this solution doesn't work anymore -- I can navigate there in a browser, but the installation says PackagesNotFoundError :(.
  • jfish003
    jfish003 almost 6 years
    Have you tried here? anaconda.org/search?q=ggplot Binstar has become Anaconda cloud