Ask Your Question

How to upgrade a python package with pip?

asked 2014-02-01 13:01:43 -0500

phn gravatar image

updated 2015-02-07 15:48:56 -0500

tmonteil gravatar image

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-02-02 04:04:56 -0500

updated 2014-02-02 04:05:12 -0500

Try sage --python pip install ... or sage --sh followed by pip install .... Either of these will run Sage's version of Python.

edit flag offensive delete link more


This worked: sage --sh then pip install --user --upgrade cython -> installed cython 0.20 (feb 2, 2014) Thanks a lot!

phn gravatar imagephn ( 2014-02-02 09:36:11 -0500 )edit

answered 2015-01-28 11:52:09 -0500


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:


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-02-01 13:01:43 -0500

Seen: 1,932 times

Last updated: Jan 28 '15