<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pyats command not found in Tools</title>
    <link>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088614#M538</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the virtual environment?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a new directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ mkdir pyats&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Go to the new directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ cd pyats&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Initialize a virtual environment in this directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ python3 -m venv .&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;Result&lt;/EM&gt;: This creates a project “folder” (space) within the current directory. The folder keeps all dependencies, features, and components together in one place.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Activate the virtual environment:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ source bin/activate .&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;P&gt;&lt;EM&gt;Result&lt;/EM&gt;: The system displays the directory in parentheses before the command prompt:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;(pyats)$&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then install&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pre"&gt;pip&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="pre"&gt;install&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="pre"&gt;pyats&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are using a virtual environment .. don't forget to activate it ..&amp;nbsp;source bin/activate&lt;/P&gt;&lt;P&gt;In the above example - pyats is the directory in which virtual environment is being created.&lt;/P&gt;&lt;P&gt;So you can do&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cd pyats 
source bin/activate 

OR

source pyats/bin/activate&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 May 2020 12:32:21 GMT</pubDate>
    <dc:creator>omz</dc:creator>
    <dc:date>2020-05-19T12:32:21Z</dc:date>
    <item>
      <title>pyats command not found</title>
      <link>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088611#M537</link>
      <description>&lt;P&gt;I followed -&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/pyats-getting-started/" target="_blank"&gt;https://developer.cisco.com/docs/pyats-getting-started/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but when I ran command pyats it saying command not found&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 12:25:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088611#M537</guid>
      <dc:creator>SaffyT</dc:creator>
      <dc:date>2020-05-19T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: pyats command not found</title>
      <link>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088614#M538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the virtual environment?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a new directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ mkdir pyats&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Go to the new directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ cd pyats&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Initialize a virtual environment in this directory:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ python3 -m venv .&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;Result&lt;/EM&gt;: This creates a project “folder” (space) within the current directory. The folder keeps all dependencies, features, and components together in one place.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Activate the virtual environment:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;$ source bin/activate .&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;P&gt;&lt;EM&gt;Result&lt;/EM&gt;: The system displays the directory in parentheses before the command prompt:&lt;/P&gt;&lt;DIV class="highlight-default notranslate"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;(pyats)$&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then install&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pre"&gt;pip&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="pre"&gt;install&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="pre"&gt;pyats&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are using a virtual environment .. don't forget to activate it ..&amp;nbsp;source bin/activate&lt;/P&gt;&lt;P&gt;In the above example - pyats is the directory in which virtual environment is being created.&lt;/P&gt;&lt;P&gt;So you can do&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cd pyats 
source bin/activate 

OR

source pyats/bin/activate&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2020 12:32:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088614#M538</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-05-19T12:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: pyats command not found</title>
      <link>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088631#M539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1051675"&gt;@SaffyT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/513338"&gt;@omz&lt;/a&gt;&amp;nbsp;may have it and you just forgot to activate your virtual environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can send us the error you get including your prompt and CLI that would help as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always recommend the full pyats installation. &amp;nbsp;See post below about half way down in the "Creating your Environment" Section.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gratuitous-arp.net/getting-started-with-pyats-and-genie/" target="_blank"&gt;https://gratuitous-arp.net/getting-started-with-pyats-and-genie/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck and report back here if you are still running into issues.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 13:09:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/pyats-command-not-found/m-p/4088631#M539</guid>
      <dc:creator>Claudia de Luna</dc:creator>
      <dc:date>2020-05-19T13:09:23Z</dc:date>
    </item>
  </channel>
</rss>

