cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2223
Views
0
Helpful
2
Replies

pyats command not found

SaffyT
Level 1
Level 1

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 Alumni
VIP Alumni

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
Spotlight
Spotlight

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 Alumni
VIP Alumni

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

Claudia de Luna
Spotlight
Spotlight

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: