CiscoDevNet/sastre

Unable to run sdwan from cli after installing from PIP

Closed this issue · 4 comments

I have installed using PIP install (recommended) but unable to run sdwan from ~. Any thought ?

~ $python3 -m pip install --upgrade cisco-sdwan
Requirement already up-to-date: cisco-sdwan in ./Library/Python/3.6/lib/python/site-packages (0.37)
Requirement already satisfied, skipping upgrade: requests in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from cisco-sdwan) (2.23.0)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->cisco-sdwan) (2.9)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->cisco-sdwan) (1.25.8)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->cisco-sdwan) (3.0.4)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->cisco-sdwan) (2019.11.28)

Hi, can you indicate the specific error message you're getting?

I dont get any error its just that the command not found:

~ $sdwan --version
-bash: sdwan: command not found

I see. It's likely because the installer didn't have privileges to add some of the files to the system path. Can you please try the following?

  • If you haven't done already, please try opening a new terminal window and see if the sdwan command is available there.
  • Can you re-run the install as sudo? sudo python3 -m pip install --upgrade cisco-sdwan

Thanks. FYI. Got it working with this:
sudo -H python3 -m pip install --upgrade cisco-sdwan