I am trying to upgrade SymPy to the current version 1.10.1. The currently installed version available in SageMath is 1.7.1.
Below is what I tried. Two different this
Is there something I am missing about how SageMath wraps other packages? Does SageMath need to be developed further before I can upgrade SymPy in it?
Attempt 1
n_jje@DESKTOP-NUEL1A5:~$ pip install --upgrade sympy
Requirement already satisfied: sympy in /opt/sagemath-9.3/local/lib/python3.7/site-packages (1.7.1)
Collecting sympy
Using cached sympy-1.10.1-py3-none-any.whl (6.4 MB)
Requirement already satisfied: mpmath>=0.19 in /opt/sagemath-9.3/local/lib/python3.7/site-packages (from sympy) (1.1.0)
Installing collected packages: sympy
Attempting uninstall: sympy
Found existing installation: sympy 1.7.1
Uninstalling sympy-1.7.1:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/opt/sagemath-9.3/local/bin/isympy' Consider using the --user option or check the permissions.
Attempt 2
n_jje@DESKTOP-NUEL1A5:~$ pip install --user --upgrade sympy
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.