saghul / pythonz

Python installation manager supporting CPython, Stackless, PyPy and Jython
http://saghul.github.io/pythonz
MIT License
751 stars 69 forks source link

Installation with python3 only #116

Open bidoule opened 8 years ago

bidoule commented 8 years ago

Installing pythonz on a system with python3 only (Ubuntu 16.04 for exemple) is difficult. Yet, the first thing I want to do on such a system is installing python2 with pythonz.

The install script contains the line PYTHONS="command -v python/usr/bin/python /usr/bin/python2" but on Ubuntu 16.04, only /usr/bin/python3 exists. The option --python is also not documented. This option was enough for me to get pythonz-install working.

Moreover, once the installation is finished, the pythonz executable contains: python /usr/local/pythonz/scripts/pythonz_main.py "$@" So it's not working on Ubuntu 16.04 I think that python should be replaced by whatever was chosen during the installation (by the option --python or by the line PYTHONS=... above).

fgimian commented 4 years ago

The first problem seems to be resolved but the issue where the pythonz executable calls python still occurs here which stops pythonz from working on CentOS 8 too.

For now, I've edited the installed file and updated python to python3 and everything seems to be OK so far.

eliasdorneles commented 2 years ago

I've got the same problem as @fgimian , proposed a fix here: https://github.com/saghul/pythonz/pull/177