0

I'm accessing an external computer with a CentOS Linux release 7.6.1810 os where I don't have any super-user rights. Because of this, changing the current python version from 2.7.5 to version 3.6.8 doesn't work using the sudo or alternatives approaches as suggested in most posts concerning this problem. Also, adding a line to the .bashrc file didn't fix this.

Any help will be very much appreciated!

Rani
  • 483
  • 7
  • 17
  • can you use a virtual environment? – gold_cy May 31 '19 at 18:08
  • 1
    You should not be changing the default Python version of your OS anyway, whether or not you have superuser rights. All sorts of things will likely break if you do. – Daniel Roseman May 31 '19 at 18:16
  • I don't know, how can I check this? I'm not very familiar with virtual environments. – Rani May 31 '19 at 18:16
  • @DanielRoseman Hm but there's some code that I need to run on that computer and initially, this problem arose from [this](https://stackoverflow.com/questions/56364247/typeerror-object-arrays-are-not-currently-supported-in-scipy-sparse-matrix-mult). That's why I want to update the python version. However, I might be mistaken and the problem's root actually lies somewhere else. – Rani May 31 '19 at 18:20
  • If there's code you need to run under a certain Python version, then run it under that Python version. No need to change the default version of your entire OS. – Daniel Roseman May 31 '19 at 18:27
  • I see, I should look elsewhere to solve my initial problem. Thanks anyway! – Rani May 31 '19 at 19:17

0 Answers0