It appears you have not registered with our community. To register please click here ...

Author Topic: Find python  (Read 1327 times)

bobbaz

  • Newbie
  • *
  • Posts: 12
  • Karma: +10/-0
    • View Profile
    • Email
Find python
« on: September 14, 2005, 10:07:26 AM »
I was told that Python is already installed on most Linux versions. Where can I find this program? I had a look on my Linux version but I didn\'t find anything.
 :confused:

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Find python
« Reply #1 on: September 14, 2005, 11:01:17 AM »
Hi,

Yes, most likely your Linux distro came with Python.  It is probably in /usr/local/lib/python , /usr/local/lib/pythonx.x , /usr/lib/python , /usr/lib/pythonx.x or like that.  From command line you can run
Code: [Select]
locate python
To find all locations with thr term python in them.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

bobbaz

  • Newbie
  • *
  • Posts: 12
  • Karma: +10/-0
    • View Profile
    • Email
Find python
« Reply #2 on: September 16, 2005, 10:15:00 AM »
Hi,
I tried actually to locate Python already but \'locate\' doesn\'t seem to work ==> I tried to write \'locate python\' in the shell-konsole and also in the comand line. In the shell-konsole nothing happend and in the comand line I was told the it\'s impossible to execute the comand...
Beginners life is quite hard...

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Find python
« Reply #3 on: September 16, 2005, 11:09:16 AM »
What distro and version are you using?
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

bunnyrage

  • Newbie
  • *
  • Posts: 15
  • Karma: +10/-0
    • View Profile
    • Email
Find python
« Reply #4 on: September 29, 2005, 04:41:11 PM »
type

which python
Kris Rosario
unixgeek@mail.com

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Find python
« Reply #5 on: September 30, 2005, 12:32:11 PM »
Quote from: bobbaz
but \'locate\' doesn\'t seem to work

This could be due to one of two things.
 
A) You may need to be logged in as root user to access the slocate database (the locate function)
 


B) Depending on which distro you are using, slocate may not have come already installed, so you would need to install it.[indent]If you are using a distro that supports updates/installs via RPM (RedHat, CentOS, Fedora, etc.) you can use a command like "rpm -Uvh slocate". If you use YUM you can use a command like "yum install slocate".


[/indent]I hope this information will help you.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1817 Views
Last post January 24, 2007, 09:27:28 PM
by zelo
3 Replies
2670 Views
Last post January 27, 2007, 02:24:46 AM
by ctwjr