Philadelphia Python Workshop/Setup/Linux project dependencies: Difference between revisions

imported>Abatula
imported>Abatula
 
(2 intermediate revisions by the same user not shown)
Line 107:
<pre>
python setup.py build
python setup.py install
</pre>
 
If you get a permissions error, use the sudo command for authorization:
<pre>
sudo python setup.py build
sudo python setup.py install
</pre>
Line 127 ⟶ 121:
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.
 
After successfully testing the dependencies, use the cd command again to navigate to the Twitter folder. Use the ls command again to view the files in this folder. One of the files is "twitter_apitwitter_functions.py", which has a ".py" extension indicating that it is a Python script. TypeOpen this file in your text editor and find the line that says:
<pre>
CONSUMER_SECRET = 'We will give this to you in class :)'
</pre>
 
Change the string to the consumer secret string that we will give you in class. Save the file and go back to the command line. Now type:
 
<pre>
Anonymous user