You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2023. It is now read-only.
It is required to install Xcode command line tools, `homebrew <http://brew.sh>`_ and the following homebrew packages on your system before installing YDK-Py.
93
-
94
-
You can download the latest python package from `here <https://www.python.org/downloads/>`_.
95
-
Please do not use the homebrew version of python as it causes issues with installing ydk packages. Please execute ``brew rm python python3`` to remove any homebrew python packages::
91
+
It is required to install Xcode command line tools, `homebrew <http://brew.sh>`_ and the following homebrew packages on your system before installing YDK-Py::
# In 'cmake' log look for 'PythonLibs' and 'found version' settings line:
217
+
218
+
-- Found PythonLibs: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found version "2.7.15")
219
+
220
+
4. Finally test you YDK core library installation from CLI, making sure there are no errors::
221
+
222
+
$ python -c "import ydk.types"
223
+
224
+
188
225
How to install
189
226
--------------
190
227
228
+
Using Python virtual environment
229
+
================================
230
+
231
+
You may want to perform the installation under Python virtual environment (`virtualenv <https://pypi.python.org/pypi/virtualenv/>`_/`virtualenvwrapper <https://pypi.python.org/pypi/virtualenvwrapper>`_).
232
+
The virtual environment allows you to install multiple versions of YDK if needed. In addition, it prevents any potential conflicts between package dependencies in your system.
233
+
234
+
To install virtual environment support in your system, execute::
235
+
236
+
pip install virtualenv virtualenvwrapper
237
+
source /usr/local/bin/virtualenvwrapper.sh
238
+
239
+
To create and activate new virtual environment::
240
+
241
+
mkvirtualenv -p python2.7 ydk-py
242
+
243
+
To activate existing virtual environment::
244
+
245
+
source ~/.virtualenvs/py2/bin/activate
246
+
247
+
To exit virtual environment::
248
+
249
+
deactivate
250
+
251
+
Once Python virtual environment is activated, you can perform quick installation or installation from source described above.
252
+
Take into consideration that you must not attempt to install YDK as root user under virtual environment.
253
+
191
254
Quick Install
192
255
~~~~~~~~~~~~~
193
256
@@ -262,22 +325,6 @@ To install the ``cisco-ios-xr`` bundle, execute::
262
325
cisco-ios-xr$ pip install dist/ydk*.gz
263
326
cisco-ios-xr$ cd ..
264
327
265
-
Using a Virtual Environment
266
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
267
-
You may want to perform the installation under a Python virtual environment (`virtualenv <https://pypi.python.org/pypi/virtualenv/>`_/`virtualenvwrapper <https://pypi.python.org/pypi/virtualenvwrapper>`_).
268
-
A virtual environment allows you to install multiple versions of YDK if needed. In addition, it prevents any potential conflicts between package dependencies in your system.
269
-
270
-
To install virtual environment support in your system, execute::
271
-
272
-
pip install virtualenv virtualenvwrapper
273
-
source /usr/local/bin/virtualenvwrapper.sh
274
-
275
-
Create new virtual environment::
276
-
277
-
mkvirtualenv -p python2.7 ydk-py
278
-
279
-
At this point, you can perform the quick install or the installation from source described above. Take into account that must not attempt to install YDK as root under a virtual environment.
280
-
281
328
Documentation and Support
282
329
--------------------------
283
330
- Read the `API documentation <http://ydk.cisco.com/py/docs>`_ for details on how to use the API and specific models
@@ -289,4 +336,4 @@ Documentation and Support
289
336
Release Notes
290
337
--------------
291
338
292
-
The current YDK release version is 0.8.1. YDK-Py is licensed under the Apache 2.0 License.
339
+
The current YDK release version is 0.8.2. YDK-Py is licensed under the Apache 2.0 License.
0 commit comments