cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
167
Views
0
Helpful
2
Replies
Highlighted
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
Highlighted
Collaborator
Collaborator

Re: pyats command not found

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

Highlighted
Enthusiast

Re: pyats command not found

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
Highlighted
Collaborator
Collaborator

Re: pyats command not found

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

Highlighted
Enthusiast

Re: pyats command not found

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