LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding an extra python repo for 'yum' & finding 'pip' package (https://www.linuxquestions.org/questions/linux-newbie-8/adding-an-extra-python-repo-for-yum-and-finding-pip-package-4175464642/)

NikosGr 06-04-2013 03:28 AM

Adding an extra python repo for 'yum' & finding 'pip' package
 
Hello i'm using CentOS v6.4

Need to install:

a) pip (so that i can successfully run 'pip install pymysql' module
b) python development tools

I wiped the whole Python installations away (leaving intact 2.6) but i wiped out pip at the process too.

Code:

nikos@superhost.gr [~]# yum search python-pip
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.netcologne.de
 * extras: mirror.optimate-server.de
 * updates: mirror.softaculous.com
base                                                                                                                                            | 3.7 kB    00:00
extras                                                                                                                                          | 3.5 kB    00:00
updates                                                                                                                                          | 3.4 kB    00:00
updates/primary_db                                                                                                                              | 2.6 MB    00:00
vz-base                                                                                                                                          |  951 B    00:00
vz-base                                                                                                                                                            3/3
vz-updates                                                                                                                                      |  951 B    00:00
No Matches found
nikos@superhost.gr [~]#

Code:

nikos@superhost.gr [~/www/data/apps]# yum search *pip*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.netcologne.de
 * extras: mirror.optimate-server.de
 * updates: mirror.softaculous.com
No Matches found
nikos@superhost.gr [~/www/data/apps]#

Where i can find pip for Python 3.3.2 ?

and also how can i add some extra repo that has the latest Python 3.3.2 version inside it so to execute:

yum install latest_python_package ?

I'm tired of compiling local python instalaltions from source.

Thank you.

acid_kewpie 06-04-2013 03:50 AM

python-pip is in the EPEL repo, but it looks quite old, might not be suitable for your needs.

as for the newest? this is EL6, it's NOT meant to be "new" it's meant to be stable. you can install python3 but it won't, and shouldn't, be the very latest version.

NikosGr 06-04-2013 04:08 AM

So, hwo cna i install python's pip package?
I really need it because otherwise i have now way to 'pip install pymysql'

acid_kewpie 06-04-2013 04:21 AM

Well firstly, you'd use the EPEL repo as I said, but did you think about NOT running "pip install pymysql"? Am I right in guessing you're following a random document you found online?

I don't *think* that the package you're after is available as python-mysql but you can install python software trivially without pip / easy_isntall - https://github.com/petehunt/PyMySQL#readme

NikosGr 06-04-2013 04:25 AM

I'am a bit confused. i have compiled from source python 3.3.2

Installation

# easy_install pymysql # ... or ... # python setup.py install

Python 3.0 Support

Simply run the build-py3k.sh script from the local directory. It will build a working package in the ./py3k directory.

Shall i try easy_install pymysql ?

or the poythin 3 support?

Code:


root@nikos [~]# which python
/usr/bin/python
root@nikos [~]# easy_install pymysql
Processing pymysql
Writing /root/pymysql/PyMySQL3-0.5/setup.cfg
Running PyMySQL3-0.5/setup.py -q bdist_egg --dist-dir /root/pymysql/PyMySQL3-0.5/egg-dist-tmp-bjpvc_
zip_safe flag not set; analyzing archive contents...
Adding PyMySQL3 0.5 to easy-install.pth file

Installed /usr/local/lib/python3.3/site-packages/PyMySQL3-0.5-py3.3.egg
Processing dependencies for PyMySQL3==0.5
Finished processing dependencies for PyMySQL3==0.5
root@nikos [~]#

Did i acted correctly? Did pymysql installed in the correct place where python 3.3.2 were also installed?


All times are GMT -5. The time now is 09:02 AM.