- Created a fresh setup of YDK...
- Stored in directory: /home/gibson/.cache/pip/wheels/73/68/7b/ad30d2c8d6b51e430590eeca4b2ac13d502f705e34dfb29f87Successfully built ydk
- Successfully installed Twisted-16.4.1 ecdsa-0.13 enum34-1.1.3 lxml-3.4.4 ncclient-0.5.2 paramiko-1.15.2 protobuf-3.0.0b2.post2 pyang-1.6 pycrypto-2.6.1 six-1.10.0 zope.interface-4.3.2
- (ydk-py-venv) [gibson@rickenbacker core]$
- When tried to list the installed packages with "pip list" could see ydk(0.5.1) is there... So expected to see ydk in the "site-packages" directory of the virtual environment Python instance...
- (ydk-py-venv) [gibson@rickenbacker site-packages]$
- But it isn't there! What is missing here.
Unable to reproduce this. When ydk is installed using 'pip install', ydk shows up in the 'pip list' and in the virtualenv python site-packages, no matter which directory you are in. Can you try to delete and create the virtualenv and try to install ydk again.
Can you try import ydk in the Python interpreter. Experienced a somewhat related issue where pip doesn't list ydk even though it is installed and operation. Was able to only see the issue in my system install. Not in virtual environments.
$ pip list | grep ydk
$ python
Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ydk
>>>
pip isn't always very reliable and, every once in a while, it get into inconsistent states.
Figured out that 'pip list' was showing ydk if we were in the ydk-py/core directory. Not sure why. Could be because somehow the PYTHONPATH was getting modified, but 'echo $PYTHONPATH' was not showing anything. After installing the tar file with 'pip install dist/*.tar.gz', pip was correctly showing ydk no matter which directory we were in.
couldn't reproduce this behavior on my centos VM either.
Comments
0 comments
Please sign in to leave a comment.