05-19-2020 05:25 AM
I followed - https://developer.cisco.com/docs/pyats-getting-started/
but when I ran command pyats it saying command not found
Solved! Go to Solution.
05-19-2020 05:32 AM
Hi
Are you using the virtual environment?
Create a new directory:
$ mkdir pyats
Go to the new directory:
$ cd pyats
Initialize a virtual environment in this directory:
$ python3 -m venv .
Result: This creates a project “folder” (space) within the current directory. The folder keeps all dependencies, features, and components together in one place.
Activate the virtual environment:
$ source bin/activate .
Result: The system displays the directory in parentheses before the command prompt:
(pyats)$
Then install pip install pyats
If you are using a virtual environment .. don't forget to activate it .. source bin/activate
In the above example - pyats is the directory in which virtual environment is being created.
So you can do
cd pyats source bin/activate OR source pyats/bin/activate
05-19-2020 06:09 AM
Hi @SaffyT ,
@omz may have it and you just forgot to activate your virtual environment.
If you can send us the error you get including your prompt and CLI that would help as well.
I always recommend the full pyats installation. See post below about half way down in the "Creating your Environment" Section.
https://gratuitous-arp.net/getting-started-with-pyats-and-genie/
Good luck and report back here if you are still running into issues.
05-19-2020 05:32 AM
Hi
Are you using the virtual environment?
Create a new directory:
$ mkdir pyats
Go to the new directory:
$ cd pyats
Initialize a virtual environment in this directory:
$ python3 -m venv .
Result: This creates a project “folder” (space) within the current directory. The folder keeps all dependencies, features, and components together in one place.
Activate the virtual environment:
$ source bin/activate .
Result: The system displays the directory in parentheses before the command prompt:
(pyats)$
Then install pip install pyats
If you are using a virtual environment .. don't forget to activate it .. source bin/activate
In the above example - pyats is the directory in which virtual environment is being created.
So you can do
cd pyats source bin/activate OR source pyats/bin/activate
05-19-2020 06:09 AM
Hi @SaffyT ,
@omz may have it and you just forgot to activate your virtual environment.
If you can send us the error you get including your prompt and CLI that would help as well.
I always recommend the full pyats installation. See post below about half way down in the "Creating your Environment" Section.
https://gratuitous-arp.net/getting-started-with-pyats-and-genie/
Good luck and report back here if you are still running into issues.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide