Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upgrade Python packages #12

Open
sahuguet opened this issue Dec 2, 2014 · 5 comments
Open

How to upgrade Python packages #12

sahuguet opened this issue Dec 2, 2014 · 5 comments

Comments

@sahuguet
Copy link

sahuguet commented Dec 2, 2014

for instance,
the pre-installed scikit-learn is 0.14. How can install 0.15?
I have 0.15 installed on my system (OSX), but the notebook only picks 0.14.

@liyanage
Copy link
Owner

liyanage commented Dec 2, 2014

You can try to add your custom location to the PYTHONPATH setting in the app's preferences, but it's possible that that won't work properly.

I will need to update the package but unfortunately I don't have much time to work on it right now.

@sahuguet
Copy link
Author

sahuguet commented Dec 2, 2014

I already tried.
I have 0.15 installed globally. And it is not recognized by the notebook.
I have tried to mess up with sys.path. Didn't work either.

Since notebook is launching virtualenv, is there anything I can do there?
I tried to pip install -U inside virtualenv. Maybe I just need to link 0.15.

@sahuguet
Copy link
Author

sahuguet commented Dec 2, 2014

Renaming sklearn inside IPython-Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages and linking to 0.15 did the trick.
ln -s /Library/Python/2.7/site-packages/sklearn .

@liyanage
Copy link
Owner

liyanage commented Dec 2, 2014

Great to hear you found a workaround for now. I think I'll eventually build on something like anaconda instead of building all packages myself but implementing that takes time as well.

On Dec 2, 2014, at 10:12 AM, Arnaud Sahuguet [email protected] wrote:

Renaming sklearn inside IPython-Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages and linking to 0.15 did the trick.
ln -s /Library/Python/2.7/site-packages/sklearn .


Reply to this email directly or view it on GitHub #12 (comment).

@sahuguet
Copy link
Author

sahuguet commented Dec 2, 2014

another option that seems to be working is to remove the stale package from the IPython-Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages .
The notebook then will use the version used by Python at the OS level.

Re packaging, the issue (in this case) is not being able to update a package because it is pre-packaged with ipython. The ideal solution would be a "update button". But having a default folder when one can put their new stuff would work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants