diff --git a/application_hosting/guestshell/README.md b/application_hosting/guestshell/README.md index 1f527d4..140ccb7 100644 --- a/application_hosting/guestshell/README.md +++ b/application_hosting/guestshell/README.md @@ -12,11 +12,15 @@ cd netprog_basics/application_hosting/guestshell Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/application_hosting/iox/README.md b/application_hosting/iox/README.md index 48fc916..79750bd 100644 --- a/application_hosting/iox/README.md +++ b/application_hosting/iox/README.md @@ -12,11 +12,15 @@ cd netprog_basics/application_hosting/iox Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/application_hosting/python_onbox/README.md b/application_hosting/python_onbox/README.md index ef90f97..445b92f 100644 --- a/application_hosting/python_onbox/README.md +++ b/application_hosting/python_onbox/README.md @@ -12,11 +12,15 @@ cd netprog_basics/application_hosting/python_onbox Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/netdevops/aci_ansible/README.md b/netdevops/aci_ansible/README.md index 2102d5a..7742282 100644 --- a/netdevops/aci_ansible/README.md +++ b/netdevops/aci_ansible/README.md @@ -12,11 +12,15 @@ cd netprog_basics/netdevops/aci_ansible Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 2.7. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python2.7 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (Explicitly Provide Path to Python2.7 installation) -virtualenv venv --python=c:\Python27\python.exe +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/netdevops/ansible_part_1/README.md b/netdevops/ansible_part_1/README.md index e17e96e..76e701a 100644 --- a/netdevops/ansible_part_1/README.md +++ b/netdevops/ansible_part_1/README.md @@ -12,11 +12,15 @@ cd netprog_basics/netdevops/ansible_part_1 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 2.7. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python2.7 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (Explicitly Provide Path to Python2.7 installation) -virtualenv venv --python=c:\Python27\python.exe +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/netdevops/ansible_part_2/README.md b/netdevops/ansible_part_2/README.md index 68129c5..ceb7331 100644 --- a/netdevops/ansible_part_2/README.md +++ b/netdevops/ansible_part_2/README.md @@ -12,11 +12,15 @@ cd netprog_basics/netdevops/ansible_part_2 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 2.7. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python2.7 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (Explicitly Provide Path to Python2.7 installation) -virtualenv venv --python=c:\Python27\python.exe +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/netdevops/ansible_part_3/README.md b/netdevops/ansible_part_3/README.md index c12436c..b23055b 100644 --- a/netdevops/ansible_part_3/README.md +++ b/netdevops/ansible_part_3/README.md @@ -12,11 +12,15 @@ cd netprog_basics/netdevops/ansible_part_3 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 2.7. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,16 +28,17 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python2.7 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (Explicitly Provide Path to Python2.7 installation) -virtualenv venv --python=c:\Python27\python.exe +# Windows +python -m venv venv venv/Scripts/activate ``` + #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/network_controllers/aci/README.md b/network_controllers/aci/README.md index 1df60ea..150a913 100644 --- a/network_controllers/aci/README.md +++ b/network_controllers/aci/README.md @@ -26,13 +26,15 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.*. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. -> Note: In the video Python 2.7 maybe mentioned as required or preferred for ACI Toolkit and Cobra. With the end of life of Python 2.7 these libraries now support, and recommend, Python 3.x. +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -40,14 +42,14 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv -venv/Scripts/activate +# Windows +python -m venv venv +venv/Scripts/activate ``` #### Install Python Requirements **NOT** Available on PyPi diff --git a/network_controllers/apicem/README.md b/network_controllers/apicem/README.md index 9e390d4..f779e4f 100644 --- a/network_controllers/apicem/README.md +++ b/network_controllers/apicem/README.md @@ -26,26 +26,30 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. ***Note: If you are leveraging a shared venv across all lessons simply activate it.*** ```bash -# OS X or Linux -virtualenv venv --python=python3 +# OS X or Linux +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv -venv/Scripts/activate +# Windows +python -m venv venv +venv/Scripts/activate ``` #### Install Python Requirements for Lesson diff --git a/network_controllers/dnac/README.md b/network_controllers/dnac/README.md index 1afbaa1..6a97853 100644 --- a/network_controllers/dnac/README.md +++ b/network_controllers/dnac/README.md @@ -26,11 +26,15 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -38,13 +42,13 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` diff --git a/network_controllers/meraki/README.md b/network_controllers/meraki/README.md index 9eee100..90d4aba 100644 --- a/network_controllers/meraki/README.md +++ b/network_controllers/meraki/README.md @@ -22,11 +22,15 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -34,13 +38,13 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` diff --git a/network_device_apis/netconf/README.md b/network_device_apis/netconf/README.md index 152d915..97bd54f 100644 --- a/network_device_apis/netconf/README.md +++ b/network_device_apis/netconf/README.md @@ -12,26 +12,30 @@ cd netprog_basics/network_device_apis/netconf Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. ***Note: If you are leveraging a shared venv across all lessons simply activate it.*** ```bash -# OS X or Linux -virtualenv venv --python=python3 +# OS X or Linux +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv -venv/Scripts/activate +# Windows +python -m venv venv +venv/Scripts/activate ``` #### Install Python Requirements for Lesson diff --git a/network_device_apis/nxapi/README.md b/network_device_apis/nxapi/README.md index 4136b41..5240acb 100644 --- a/network_device_apis/nxapi/README.md +++ b/network_device_apis/nxapi/README.md @@ -24,11 +24,15 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -36,13 +40,13 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` diff --git a/network_device_apis/restconf/README.md b/network_device_apis/restconf/README.md index 96f9a14..1b1d832 100644 --- a/network_device_apis/restconf/README.md +++ b/network_device_apis/restconf/README.md @@ -22,11 +22,15 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -34,13 +38,13 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` diff --git a/network_device_apis/yang/README.md b/network_device_apis/yang/README.md index 826ada7..1c9bf5c 100644 --- a/network_device_apis/yang/README.md +++ b/network_device_apis/yang/README.md @@ -12,26 +12,30 @@ cd netprog_basics/network_device_apis/yang Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. ***Note: If you are leveraging a shared venv across all lessons simply activate it.*** ```bash -# OS X or Linux -virtualenv venv --python=python3 +# OS X or Linux +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv -venv/Scripts/activate +# Windows +python -m venv venv +venv/Scripts/activate ``` #### Install Python Requirements for Lesson diff --git a/programming_fundamentals/python_part_1/README.md b/programming_fundamentals/python_part_1/README.md index fa5a34d..9578383 100644 --- a/programming_fundamentals/python_part_1/README.md +++ b/programming_fundamentals/python_part_1/README.md @@ -12,7 +12,11 @@ cd netprog_basics/programming_fundamentals/python_part_1 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. ***Note: During this lesson you will explore the basics of Python.*** diff --git a/programming_fundamentals/python_part_2/README.md b/programming_fundamentals/python_part_2/README.md index aee488c..bc72e43 100644 --- a/programming_fundamentals/python_part_2/README.md +++ b/programming_fundamentals/python_part_2/README.md @@ -12,7 +12,11 @@ cd netprog_basics/programming_fundamentals/python_part_2 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. ***Note: During this lesson you will learn about Python Virtual Environments and Libraries and practice using these tools.*** diff --git a/programming_fundamentals/python_part_3/README.md b/programming_fundamentals/python_part_3/README.md index 33d4c02..96d3e35 100644 --- a/programming_fundamentals/python_part_3/README.md +++ b/programming_fundamentals/python_part_3/README.md @@ -12,11 +12,15 @@ cd netprog_basics/programming_fundamentals/python_part_3 Be sure to complete the [General Workstation Setup](https://github.com/CiscoDevNet/netprog_basics/blob/master/readme_resources/workstation_setup.md) instructions before beginning this lesson. ### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. @@ -24,13 +28,13 @@ Follow these steps to create and activate a venv. ```bash # OS X or Linux -virtualenv venv --python=python3 +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv +# Windows +python -m venv venv venv/Scripts/activate ``` diff --git a/programming_fundamentals/rest_part_2/README.md b/programming_fundamentals/rest_part_2/README.md index e687604..af24988 100644 --- a/programming_fundamentals/rest_part_2/README.md +++ b/programming_fundamentals/rest_part_2/README.md @@ -21,29 +21,32 @@ To leverage them, simply `Import` them into your Postman client. > Reminder: Many network devices leverage self-signed certificates for `https://` APIs. Don't forget to turn **OFF** SSL certificate checking within Postman settings. -### Python Environment Setup -It is recommended that this lesson be completed using Python 3.6. A recent version of Python 2.7 or Python 3.5 should also work. +### Python Environment Setup +It is recommended that this lesson be completed using Python 3.8. Other versions of Python 3 should also work. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course. -*There is no need to create independent venv for each lesson, but you can if you choose. At a minimum you should create 2 venvs, one for Python 2 and one for Python 3.* +*There is no need to create independent venv for each lesson, but you can if you choose.* Follow these steps to create and activate a venv. ***Note: If you are leveraging a shared venv across all lessons simply activate it.*** ```bash -# OS X or Linux -virtualenv venv --python=python3 +# OS X or Linux +python3 -m venv venv source venv/bin/activate ``` ```bash -# Windows (assumes Python 3 is default) -virtualenv venv -venv/Scripts/activate +# Windows +python -m venv venv +venv/Scripts/activate ``` - #### Install Python Requirements for Lesson With the Virtual Environment activated, use pip to install the necessary requirements. diff --git a/readme_resources/workstation_setup.md b/readme_resources/workstation_setup.md index b1d7c90..3e48259 100644 --- a/readme_resources/workstation_setup.md +++ b/readme_resources/workstation_setup.md @@ -27,6 +27,13 @@ One aspect of Linux distributions that is not included by default with OS X is a ### Linux Linux, as well as the specific distributions like Ubuntu, CentOS, Red Hat, etc, are quite popular and powerful as a development environment owing to their popularity for the actual end systems and servers. For example, nearly all network appliances are built on-top of a Linux kernel today. +## Python + +All labs, demonstrations, and examples accompanying the videos in the course should be completed using Python 3.8. Other versions of Python 3 should also work. It is highly recommended to leverage a Python Virtual Environment for completing exercises in this course. + +> **Note about Python 2:** Python 2 was [sunset](https://www.python.org/doc/sunset-python-2/) by Python Software Foundation on January 1, 2020. This means that no more updates to Python 2 are being worked on, including security updates. Python 3 is now the recommended version of Python for everyone to use. Most Python developers of software, packages, and scripts have migrated to Python 3 already, however you may find some older scripts and tools that are no longer maintained that only work with Python 2. +> +> You may see/hear references to Python 2 within the videos in this course from before January 2020, however all examples scripts and demos available in the GitHub repo to run have been updated to leverage Python 3. ## Setting up your development environment A great first stop are the [**Learning Labs on Developer Workstation and Environment Setup**](http://developer.cisco.com/learning/modules/dev-setup). The first lab discusses what goes into a dev workstation, and gives some suggested tools. The following labs walk through installing the tools on different platforms.