Ask Your Question
1

How to upgrade a python package with pip?

asked 2014-02-01 20:01:43 +0100

phn gravatar image

updated 2023-01-10 00:01:09 +0100

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 11:04:56 +0100

updated 2014-02-02 11:05:12 +0100

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 16:36:11 +0100 )edit
3

answered 2015-01-28 18:52:09 +0100

vdelecroix gravatar image

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 20:01:43 +0100

Seen: 4,730 times

Last updated: Jan 28 '15