Open viethuongy2k opened 2 years ago
Hi @viethuongy2k,
pip
is a system executable, so you'd run pip install
from your shell environment, not in python. The notebook is a python interpreter, rather than a console/shell. You'll want to pull up a console (i.e. where you're launching jupyter notebook
from, and pip install from there).
Hi,
Thanks a lot. I''m launching this notebook from Coursera... it might seems that I can''t install it then?
On Fri, Nov 12, 2021 at 12:44 PM Joe Kington @.***> wrote:
Hi @viethuongy2k https://github.com/viethuongy2k,
pip is a system executable, so you'd run pip install from your shell environment, not in python. The notebook is a python interpreter, rather than a console/shell. You'll want to pull up a console (i.e. where you're launching jupyter notebook from, and pip install from there).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joferkington/mpldatacursor/issues/110#issuecomment-967298911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU4YZQA5BZOKNFSRBHZUD4TULVG7RANCNFSM5H5KQNVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Huong
It sounds like you might be using an online environment such as binder, then? If that's the case, the packages installed in the virtual machine that you're using are typically set beforehand by whoever set it up. While you could probably change them and install other packages, the changes would go away as soon as you ended your session and wouldn't persist if you were to re-open the jupyter notebook later.
In general, you'll want to set up a local python environment if you're going to be working with python. Temporary virtual environments (like what you're using) are good for simple examples and teaching, but generally aren't useful for other work where you'll need access to your own data/etc. conda
is an easy way to get a full scientific python setup on many platforms, but there are lots of other ways too.
Hi, I managed to install this within my own Anaconda! thanks a lot
On Fri, Nov 12, 2021 at 1:45 PM Joe Kington @.***> wrote:
It sounds like you might be using an online environment such as binder, then? If that's the case, the packages installed in the virtual machine that you're using are typically set beforehand by whoever set it up. While you could probably change them and install other packages, the changes would go away as soon as you ended your session and wouldn't persist if you were to re-open the jupyter notebook later.
In general, you'll want to set up a local python environment if you're going to be working with python. Temporary virtual environments (like what you're using) are good for simple examples and teaching, but generally aren't useful for other work where you'll need access to your own data/etc. conda is an easy way to get a full scientific python setup on many platforms, but there are lots of other ways too.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joferkington/mpldatacursor/issues/110#issuecomment-967336984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU4YZQH5UHLGOPTF5B7M4KTULVODZANCNFSM5H5KQNVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Huong
Hi, I'm using Jupiter notebook and try to use mpldatacursor. when I key in 'pip install mpldatacursor' command, it''s said invalid syntax. Could you guide me here please? (very new to python & Matplotlib)
Thank you