Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The python2.7 documentation refers to a Tools/scripts directory and a Tools/demos directory, but those don't seem to be on my computer.

    locate Tools/scripts   

doesn't find anything.

A post on this site said that

    sudo apt-get source python

would download the Tools directory, but it did not. Have you any other suggestions?

share|improve this question
    
Did you enable and update the sources repository before the apt-get? –  Rinzwind Apr 18 '13 at 14:28
    
I'm a linux newbie, so perhaps not. The first time I tried the command it failed with an error message that told me to install dev-dpkg. I did so, and the command seemed to run Ok the second time. What else should I have done? –  Saul Spatz Apr 18 '13 at 18:28

1 Answer 1

up vote 1 down vote accepted

The Tools/scripts files are installed with the python2.7-examples package, in Ubuntu. They are located in the /usr/share/doc/python2.7/examples/Tools/scripts directory once the package is installed.

share|improve this answer
    
Not on my system./usr/share/doc/python2.7 ACKS.gz copyright python-policy.sgml.gz README.gz changelog.Debian.gz NEWS.gz python-policy.txt.gz changelog.gz python-policy.html README.Debian –  Saul Spatz Apr 18 '13 at 18:20
    
$ ls /usr/share/doc/python2.7 ACKS.gz copyright python-policy.sgml.gz README.gz changelog.Debian.gz NEWS.gz python-policy.txt.gz changelog.gz python-policy.html README.Debian –  Saul Spatz Apr 18 '13 at 18:22
    
And what does dpkg -l python2.7-examples say? –  dobey Apr 18 '13 at 18:23
    
Not on my system. I have a /usr/share/doc/python2.7 director, but it has no example subdirectory. I believe that python 2.7 was the default when I installed ubuntu 12.04. Do you mean something else by, "when the package is installed?" Thanks. –  Saul Spatz Apr 18 '13 at 18:29
    
Re-read the answer. The package you need to install is python2.7-examples not python2.7. –  dobey Apr 18 '13 at 18:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.