Python and scipy upgrades?

Hello,

I am trying to use RSA toolbox via python3 on the CBS server. However, it seems to require a newer version of numpy. When I try upgrading with pip, it still only finds version 1.24.4 although it appears that 2.1.0 is available. This is an issue because I get an error when I try to import rsatoolbox and run it in the terminal.

I do not have this problem when I use python inside VS Code, and the most recent packages are already installed in the VS Code venv. I tried to copy the contents of the venv but ran into this issue where when I use pip, it can’t “find” the most recent versions. However, running rsatoolbox inside of VS code runs into a memory error (not enough memory).

Please let me know what to do. The goal is to be able to use functions from rsatoolbox on the CBS server (where my data are).

Any suggestions welcome. (I have also tried downgrading rsatoolbox)

Thanks,
Priya

The solution is to install numpy 1.21.2 specifically.

Hello,

Are you already using venv to manage you python enviroments? Otherwise you are trying to update the base python in the ubuntu system and that is not allowed per user case.

You can find some isntruction to create venv here Creating general purpose python virtual environment on CBS server

In enviroments that your create you will be to customize your python and packages without problems.