ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 28 Mar 2014 11:29:30 +0100Trouble Installing Plotly on a Sage VirtualBoxhttps://ask.sagemath.org/question/11348/trouble-installing-plotly-on-a-sage-virtualbox/Trouble Installing Plotly on a Sage VirtualBox
I am trying to use plotly on a virtual box vm using the downloaded
virtual machine image of SageMath.
I can get to the command line, <Right-Ctrl and F1>
I did not have pip which is used to install plotly but got it with
"sudo yum -y install python-pip"
then ran pip to get plotly
"sudo /usr/bin/pip-python ///install plotly"
back in sage <Right-Ctrl and F2>
"import plotly"
fails
but at the linux command line
"python"
"import plotly"
works, so possibly I installed to the wrong copy of python?
from http://ask.sagemath.org/question/3481/how-to-upgrade-a-python-package-with-pip
also tried some variaions on "sage --python /usr/bin/pip-python install"
all of which failed
any help?Thu, 27 Mar 2014 12:09:40 +0100https://ask.sagemath.org/question/11348/trouble-installing-plotly-on-a-sage-virtualbox/Answer by russ_hensel for <p>Trouble Installing Plotly on a Sage VirtualBox</p>
<p>I am trying to use plotly on a virtual box vm using the downloaded
virtual machine image of SageMath.</p>
<p>I can get to the command line, <right-ctrl and="" f1=""></p>
<p>I did not have pip which is used to install plotly but got it with</p>
<p>"sudo yum -y install python-pip"</p>
<p>then ran pip to get plotly</p>
<p>"sudo /usr/bin/pip-python ///install plotly"</p>
<p>back in sage <right-ctrl and="" f2=""></p>
<p>"import plotly"</p>
<p>fails</p>
<p>but at the linux command line</p>
<p>"python"</p>
<p>"import plotly"</p>
<p>works, so possibly I installed to the wrong copy of python?</p>
<p>from <a href="http://ask.sagemath.org/question/3481/how-to-upgrade-a-python-package-with-pip">http://ask.sagemath.org/question/3481...</a>
also tried some variaions on "sage --python /usr/bin/pip-python install"
all of which failed </p>
<p>any help?</p>
https://ask.sagemath.org/question/11348/trouble-installing-plotly-on-a-sage-virtualbox/?answer=16105#post-id-16105following a suggestion at: http://ask.sagemath.org/question/1382/how-do-i-install-python-modules-or-use-a-different
it seemed that ./sage --python -m easy_install <package_name>
might work at the command line. plotly was in the python index so I tried
./sage --python -m easy_install plotly
which threw an error, perhaps because of my current directory, but
sage --python -m easy_install plotly
seemed to work, and after a restart of the virtual machine ( which might really be
the key to success ) plotly did work in the notebook.Fri, 28 Mar 2014 11:29:30 +0100https://ask.sagemath.org/question/11348/trouble-installing-plotly-on-a-sage-virtualbox/?answer=16105#post-id-16105