取消
显示结果 
搜索替代 
您的意思是: 
cancel
4312
查看次数
0
有帮助
2
回复

ModuleNotFoundError: No module named 'ncclient'

Jaki
Level 1
Level 1

Successfully uninstalled pip-21.1.1

pip3.9 install ncclient

Requirement already satisfied

 

python3.9 NC-get-config.py --host ios-xe-mgmt.cisco.com -u developer -p C1sco12345 --port 10000

ModuleNotFoundError: No module named 'ncclient'

1 个已接受解答

已接受的解答

@Jaki i would use the team support space for DevNet here for these types of question as this community is for issues with sandbox themselves not local code. Here is the link https://developer.cisco.com/site/support/

 

STUACLAR-M-R6EU:~ stuaclar$ source venv/bin/activate
(venv) STUACLAR-M-R6EU:~ stuaclar$ pip -V
pip 20.3.3 from /Users/stuaclar/venv/lib/python3.6/site-packages/pip (python 3.6)
(venv) STUACLAR-M-R6EU:~ stuaclar$ python -V
Python 3.6.5
(venv) STUACLAR-M-R6EU:~ stuaclar$ python -c "import sys; print('\n'.join(sys.path))"

/Users/stuaclar/venv/lib/python36.zip
/Users/stuaclar/venv/lib/python3.6
/Users/stuaclar/venv/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Users/stuaclar/venv/lib/python3.6/site-packages

 

If the python version number in the pip information is inconsistent with the python information, or the file path of pip and the library path of python do not match, you should reinstall your package with the correct pip.

 

Take a look at this content for setting up your local machine. https://developer.cisco.com/learning-labs/setup/

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

在原帖中查看解决方案

2 条回复2

@Jaki i would use the team support space for DevNet here for these types of question as this community is for issues with sandbox themselves not local code. Here is the link https://developer.cisco.com/site/support/

 

STUACLAR-M-R6EU:~ stuaclar$ source venv/bin/activate
(venv) STUACLAR-M-R6EU:~ stuaclar$ pip -V
pip 20.3.3 from /Users/stuaclar/venv/lib/python3.6/site-packages/pip (python 3.6)
(venv) STUACLAR-M-R6EU:~ stuaclar$ python -V
Python 3.6.5
(venv) STUACLAR-M-R6EU:~ stuaclar$ python -c "import sys; print('\n'.join(sys.path))"

/Users/stuaclar/venv/lib/python36.zip
/Users/stuaclar/venv/lib/python3.6
/Users/stuaclar/venv/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Users/stuaclar/venv/lib/python3.6/site-packages

 

If the python version number in the pip information is inconsistent with the python information, or the file path of pip and the library path of python do not match, you should reinstall your package with the correct pip.

 

Take a look at this content for setting up your local machine. https://developer.cisco.com/learning-labs/setup/

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

@bigvilbeard. Thank you so much for directing me in the right direction.

Now it is working for me after using the above set of commands. Thanks