Ask Your Question
1

How to upgrade a python package with pip?

asked 11 years ago

phn gravatar image

updated 2 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

updated 11 years ago

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

Preview: (hide)
link

Comments

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

phn gravatar imagephn ( 11 years ago )
3

answered 10 years ago

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

Preview: (hide)
link

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: 11 years ago

Seen: 4,827 times

Last updated: Jan 28 '15