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'
已解决! 转到解答。
@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.
@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.