1

I installed Python 3.5 from source and broke a number of modules on Python 3.4, which unfortunately, was an essential part of Ubuntu. I've been trying to fix the system, now I'm almost there, with (hopefully) the last problem: My Python 3.4 only recognize C modules with name *.cpython-34m.so, while all packages from Ubuntu repository are named *.cpython-34m-x86_64-linux-gnu.so. It seems that the cpython-34m stuff is the full name of Python, so I need to change it in accord with Ubuntu's expectation. How can I achieve this?

Huazuo Gao
  • 1,603
  • 14
  • 20

3 Answers3

1

What you are trying makes no sense. The name cannot be changed, for a good reason. The reason the names are different is to prevent incompatible versions from mixing up each other. You can compile a different version with different options and then the name will be different, too.

tripleee
  • 175,061
  • 34
  • 275
  • 318
1

The essence of the package management is to satisfy all dependencies through the repositories. Theoretically there should be no need to install anything from the sources.

If you need a different Python version for some specifical reasons, virtual environments would be the thing to look for:

http://docs.python-guide.org/en/latest/dev/virtualenvs/

cezar
  • 11,616
  • 6
  • 48
  • 84
0

I reinstalled Python 3.4 via Ubuntu package system, and suddenly everything worked fine. I still have no clue how Ubuntu customize its own Python, since Python's configure command has no related option at all. Anyway, it works, so why bother :P. Finally, thank you for helping me with this problem.

Huazuo Gao
  • 1,603
  • 14
  • 20