cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2746
Views
3
Helpful
9
Replies
amwhaley
Cisco Employee

Coding 101 Class Setup Instructions

If you are attending the Coding 101 class at the Kickoff event on April 22, and if you want to do the hands-on coding exercises in Python, please install these items on your system before the workshop.

Install Postman

Install Python

  • Install Python 3.4.2 for your operating system.
  • Download the installer here: https://www.python.org/downloads/
  • After you finish the install, you can check to see if you have python3 installed, by typing python3 at your command line.
  • If python3 works, you will see ">>>" prompt, you can then quit out of it by typing "quit()" at command line.

Install the Requests Library

  • You can read more about the Requests Library here
  • To install Requests for Python 3 on Mac OS, use this command line command:
    • Go to the command line prmpt
    • Type "pip3 install requests"
  • To install Requests on Windows:
    • Pip comes with Python 3.4 Windows
    • Check to see if Pip is in your python 3 path
    • C:\>pip –V pip 1.5.6 from C:\Python34\lib\site-packages
    • If pip is in the Python34 path, the execute pip install requests
  • You will also need access to an APIC-EM controller.

Clone Git Repo

Feel free to ask questions here about the setup.

Thanks,

Amanda Whaley

9 REPLIES 9
mbalasti
Cisco Employee

Can you give guidance on the following attached output?  I'm running MAC OS X 10.11.4 and installed Python 3.4.2 as recommended.  Let me know if I've missed a step somewhere.

Thanks!

try replacing the url in the first curl command with the url that is in the last line of the message

That appears to have worked yet introduced another issue, the need to upgrade pip.  I attempted this using the recommended line which alas fails.  Recommendations?

Thanks!

mbalasti

I am experiencing the same issues you have highlighted. Have you managed to sort them out?

Hi Lucy,

Unfortunately I did not.

Monica

I have followed this link Installation — Requests 2.9.1 documentation. I have cloned the public repository however I cannot be able to embed it in my python package

Mary Ghabrai
Beginner

Hi Amanda,

Would it be ok if I use python 2.7 ? or would I encounter issues with that?

mary.ghabrai

Some of the commands are different, so you may have issues... For example:

print 'Python 2.7'

verus

print('Python 3.4')

(I'm just a participant so it may not matter, but thought I'd share what I know about the differences.  I just switched recently from 2.7 to 3.5 and had to modify previous code.)

great.thanks for your reply. I'll keep that in mind.

Content for Community-Ad