On Wed, Nov 13, 2013 at 5:38 PM, Ferrous Cranus <nikos.gr...@gmail.com> wrote: > Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: > > >>> and also is there a way to call it like #!/usr/bin/python >> >> >> Of course there is, but only if you wish to break your system. The OS >> will be expecting /usr/bin/python to be Python 2. Leave it be. > > > Okey i will leave it be although i dislike the idea of using the shebang > constructor as #~/usr/local/bin/python3 > Is there any way that i can use it as it was #!/usr/bin/python but firing > python3 instead of python 2.6.6 ?
You can link it to /usr/bin/python3. There should be no problem when you do this. > Also i'm tryong 'yum install python-pip' because some modules like 'pymysql' > and 'pygeoip' are missing but CentOS doesn't seem able to detect it. That should install it for the Python 2.6.6 you have, and possibly under the name `python-pip` because of various shenanigans in the redhatesque repos. > Please help me install 'pip' so i can install the modules. http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-setuptools Get ez_setup.py and get-pip.py, and run them with the desired Python. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense -- https://mail.python.org/mailman/listinfo/python-list