Cannot install ggplot with anaconda
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.
user4352158
Updated on June 08, 2022Comments
-
user4352158 almost 2 years
I want to be able to use
geom_smooth
in ggplot. However, when I typedconda install ggplot
, I get the errorno packages found in current win-32 channels matching ggplot
. Anyone know what is going on? -
user4352158 about 9 yearsEven if I try
pip install ggplot
it installs successfully, but I still can't use ggplot in PyCharm. When I typeimport ggplot as gg
, it saysno module named ggplot
-
user4352158 about 9 yearsI 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 usefrom ggplot import *
and then try something likeplt=ggplot(data=df,aes(x=x, y=y)) +\ geom_line() +\ stat_smooth(colour='blue', span=0.2)
and thenplt.show()
-
stackunderflow over 8 yearsI 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. over 8 yearsjfish'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 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. 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 almost 8 yearsthe 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 almost 6 yearsIt seems like this solution doesn't work anymore -- I can navigate there in a browser, but the installation says
PackagesNotFoundError
:(. -
jfish003 almost 6 yearsHave you tried here? anaconda.org/search?q=ggplot Binstar has become Anaconda cloud