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

imported>Abatula
imported>Abatula
Line 54:
===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 installUnzip the software. '''It is important that the dependencies are installed in thefile orderyou listedjust abovedownloaded.''' For each project, startOpen a command prompt and navigate to the Desktop directory where the source codeunzipped livesfolder. For example, if theyou httplib2-0.6.0extracted projectthe was extractedfolder to /home/jesstessmyname/Desktop/httplib2PythonWorkshop-0.6.0Twitter-master, the command
 
<pre>
cd /home/jesstessmyname/Desktop/httplib2PythonWorkshop-0.6.0Twitter-master
</pre>
 
will changemove you into that directory, and
 
<pre>
Line 66 ⟶ 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). Each of these 4 dependency subfolders has an installer script that we'll need to run at a command prompt to install the software. For each dependency (in the order: simplejson-3.3.0 python-oauth2-master httplib2-0.8 python-twitter-1.0) navigate to the folder using cd. For example:
will show you the source code files in that directory. One of the files is "setup.py", which has a ".py" extension indicating that it is a Python script. Type:
<pre>
cd simplejson-3.3.0
</pre>
willto showmove youinto the subfolder for simplejson from the main PythonWorkshop-Twitter-master folder. Use the ls command again to display the source code files in thatthe directory. One of the files is "setup.py", which has a ".py" extension indicating that it is a Python script. Type:
 
<pre>
Line 72 ⟶ 75:
</pre>
 
type in your password, and hit enter to install httplib2simplejson.
 
To return to this main folder, use the cd command again to move up one directory:
 
<pre>
cd ..
</pre>
 
 
Navigate to the 3 other dependency directories and run
Anonymous user