LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2013, 03:28 AM   #1
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Rep: Reputation: 0
Question 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.
 
Old 06-04-2013, 03:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 06-04-2013, 04:08 AM   #3
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
So, hwo cna i install python's pip package?
I really need it because otherwise i have now way to 'pip install pymysql'
 
Old 06-04-2013, 04:21 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 06-04-2013, 04:25 AM   #5
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
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?

Last edited by NikosGr; 06-04-2013 at 04:30 AM.
 
  


Reply

Tags
python



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra repo containign latest version of Python 3 for CenOS 6.4 NikosGr Linux - Newbie 5 11-12-2013 04:58 PM
Can't build dev-python/pip flebber Sabayon 0 11-16-2012 02:55 AM
FEDORA 10 - yum repo config issue - cannot see extra packages manuleka Linux - Newbie 17 02-23-2009 07:29 AM
Which yum repo was a package installed from? arizonagroovejet Linux - General 1 08-25-2008 08:58 AM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration