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.Wed, 28 Jan 2015 18:52:09 +0100How to upgrade a python package with pip?https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/I'm trying to set up QuantLib and PyQL on cloud.sagemath. QuantLib builds out of the box. For PyQL, I need Cython >0.18; installed version is 0.15. If I try a local install:
pip install --user --upgrade --ignore-installed cython
pip tries to uninstall the system version, which of course fails. Any idea how to proceed?Sat, 01 Feb 2014 20:01:43 +0100https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/Answer by vdelecroix for <p>I'm trying to set up QuantLib and PyQL on cloud.sagemath. QuantLib builds out of the box. For PyQL, I need Cython >0.18; installed version is 0.15. If I try a local install:</p>
<p>pip install --user --upgrade --ignore-installed cython</p>
<p>pip tries to uninstall the system version, which of course fails. Any idea how to proceed?</p>
https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?answer=25629#post-id-25629Hello,
Soon we will have pip as a standard package. So in sage version greater or equal to 6.5 just do
sage -pip install ...
In Sage version 6.4 you can already do the above command but first you need to install pip through
sage -i pip
For more information about the integration of pip see:
- [trac ticket #16479](http://trac.sagemath.org/ticket/16479): package for pip the Python installer
- [trac ticket #17155](http://trac.sagemath.org/ticket/17155): add "sage -installed" and "sage -pip" commands
- [trac ticket #17368](http://trac.sagemath.org/ticket/17368): Make pip a standard package
VincentWed, 28 Jan 2015 18:52:09 +0100https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?answer=25629#post-id-25629Answer by John Palmieri for <p>I'm trying to set up QuantLib and PyQL on cloud.sagemath. QuantLib builds out of the box. For PyQL, I need Cython >0.18; installed version is 0.15. If I try a local install:</p>
<p>pip install --user --upgrade --ignore-installed cython</p>
<p>pip tries to uninstall the system version, which of course fails. Any idea how to proceed?</p>
https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?answer=15998#post-id-15998Try `sage --python pip install ...` or `sage --sh` followed by `pip install ...`. Either of these will run Sage's version of Python.Sun, 02 Feb 2014 11:04:56 +0100https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?answer=15998#post-id-15998Comment by phn for <p>Try <code>sage --python pip install ...</code> or <code>sage --sh</code> followed by <code>pip install ...</code>. Either of these will run Sage's version of Python.</p>
https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?comment=16355#post-id-16355This worked: sage --sh then pip install --user --upgrade cython -> installed cython 0.20 (feb 2, 2014) Thanks a lot!Sun, 02 Feb 2014 16:36:11 +0100https://ask.sagemath.org/question/10978/how-to-upgrade-a-python-package-with-pip/?comment=16355#post-id-16355