Anonymous user
Philadelphia Python Workshop/Setup/Linux project dependencies: Difference between revisions
Philadelphia Python Workshop/Setup/Linux project dependencies (view source)
Revision as of 00:19, 25 July 2013
, 10 years ago→Twitter
imported>Abatula |
imported>Abatula |
||
Line 65:
</pre>
will show you the source code files in that directory. In this directory are five folders: Twitter (the main folder) and four dependency folders (simplejson-3.3.0, python-oauth2-master, httplib2-0.8, and python-twitter-1.0).
<pre>
cd simplejson-3.3.0
Line 84:
Navigate to the
<pre>
Line 104:
</pre>
Now use cd to move into the python-twitter-1.0 folder. This time we will run the two following commands to install the dependency:
<pre>▼
python setup.py build
python setup.py install
If you get a permissions error, use the sudo command for authorization:
<pre>
sudo python setup.py build
sudo python setup.py install
<pre>
And type in your password when prompted.
===Test the Twitter code===
Within the python-twitter-1.0 folder, run
<pre>
python twitter_test.py
</pre>
After it runs, it should state that it ran 41 tests on the code, and the final line should say "OK." If your test failed, ask an instructor for help.
▲<pre>
▲</pre>
<pre>
|