cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
857
Views
0
Helpful
2
Replies
SaffyT
Beginner

pyats command not found

I followed - https://developer.cisco.com/docs/pyats-getting-started/

but when I ran command pyats it saying command not found

2 ACCEPTED SOLUTIONS

Accepted Solutions
omz
VIP Collaborator VIP Collaborator
VIP Collaborator

Hi 

Are you using the virtual environment?

  1. Create a new directory:

    $ mkdir pyats
  2. Go to the new directory:

    $ cd pyats
  3. 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.

  4. 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

View solution in original post

Claudia de Luna
Rising star

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.

View solution in original post

2 REPLIES 2
omz
VIP Collaborator VIP Collaborator
VIP Collaborator

Hi 

Are you using the virtual environment?

  1. Create a new directory:

    $ mkdir pyats
  2. Go to the new directory:

    $ cd pyats
  3. 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.

  4. 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

View solution in original post

Claudia de Luna
Rising star

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.

View solution in original post

Create
Recognize Your Peers
Content for Community-Ad