Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the current version of sympy and upgrade to the latest version?

Tags:

How to check the current version of SymPy and upgrade to the latest version?

I am using macOS. The way I installed my current version is using pip install sympy.

like image 511
MAS Avatar asked Apr 23 '15 13:04

MAS


2 Answers

To check the current version of sympy:

In [6]: import sympy  In [7]: sympy.__version__ Out[7]: '0.7.6-git' 

For stable release:

$ pip install --upgrade sympy 

For latest features:

$ pip install --upgrade git+ssh://[email protected]/sympy/sympy.git 
like image 140
Sudhanshu Mishra Avatar answered Oct 28 '22 21:10

Sudhanshu Mishra


Use pip list to list all packages and their versions. You can pipe it to grep to search for the package your interested in:

pip list | grep sympy

Alternatively to get all information about that package including version you can use pip show:

pip show sympy

To upgrade it's simply:

pip install --upgrade sympy

If you need write permissions to your python installation directory don't forget to prepend the pip install command with a sudo: e.g. sudo pip install --upgrade sympy

like image 40
EricR Avatar answered Oct 28 '22 21:10

EricR