Boston Python Workshop 3/Friday/Linux project dependencies: Difference between revisions

m
Protected "Boston Python Workshop 3/Friday/Linux project dependencies" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))
(→‎Install the Twitter project dependencies: python setup.py install requires sudo)
imported>Jesstess
m (Protected "Boston Python Workshop 3/Friday/Linux project dependencies" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(4 intermediate revisions by one other user not shown)
Line 61:
# Create a new folder called Wordplay on your Desktop
# Save the following files to the Wordplay folder:
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/sowpods.txt
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/scrabble.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/scrabble_cheater.py
Line 69 ⟶ 70:
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words5.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words6.py
## http://scrabblehelper.googlecode.com/svn-history/r20/trunk/ScrabbleHelper/src/dictionaries/sowpods.txt
 
===Test the Wordplay code===
Line 115:
===Install the Twitter project dependencies===
 
Each of these 4 dependencies has an installer script that we'll need to run at a command prompt to install the software. '''It is important that the dependencies are installed in the order listed above.''' For each project, start a command prompt and navigate to the Desktop directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to /home/jesstess/Desktop/Twitter/httplib2-0.6.0,
 
<pre>
Line 141:
</pre>
 
in all of them to install those dependencies as well.
 
If you get an error like:
 
<pre>
ImportError: No module named setuptools
</pre>
 
you need an extra package. Type:
 
<pre>
sudo apt-get install python-setuptools
</pre>
 
We've written some skeleton code for the Twitter project already. Download this code so you're ready to start working with it tomorrow:
Anonymous user