Ask Your Question
1

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
1

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

Comments

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
2

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

Hello,

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:

Vincent

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

Stats

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

Seen: 2,141 times

Last updated: Jan 28 '15