<?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: pip install swat syntax error in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/588230#M17217</link>
    <description>&lt;P&gt;So sorry I missed your post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I am sure you already know you can fix this by adding&amp;nbsp;&amp;nbsp;the following in your pip.ini:&lt;/P&gt;
&lt;PRE class="lang-py prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;trusted&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;host &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; pypi&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;python&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org pypi&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org files&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;pythonhosted&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or by using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pip install --trusted-host pypi.org PyHamCrest&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 13:49:59 GMT</pubDate>
    <dc:creator>Andy547</dc:creator>
    <dc:date>2019-09-12T13:49:59Z</dc:date>
    <item>
      <title>pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517211#M15133</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I try to install SWAT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I input&amp;nbsp;&amp;nbsp;pip install &lt;A href="https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz&amp;nbsp;" target="_blank"&gt;https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in Anaconada Prompt.&lt;/P&gt;&lt;P&gt;It shows syntax error. idk how to fix this..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-29 13_49_46-Anaconda Prompt - python.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25260i2CD59FA0F02E9E21/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-29 13_49_46-Anaconda Prompt - python.png" alt="2018-11-29 13_49_46-Anaconda Prompt - python.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 19:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517211#M15133</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-11-29T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517222#M15136</link>
      <description>The Python package manager is a not run from with the Python REPL. It’s command line application you’d run from the command prompt of your operating system shell.&lt;BR /&gt;&lt;BR /&gt;You might need to check the pip documentation for how to install it on your operating system if it not installed yet.</description>
      <pubDate>Thu, 29 Nov 2018 20:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517222#M15136</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2018-11-29T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517486#M15153</link>
      <description>&lt;P&gt;Anaconda is a virtual environment.&amp;nbsp; If you install swat there it will not stay like you want.&amp;nbsp; You can do it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;conda create -n venv_name&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;source activate venv_name&lt;/CODE&gt;, where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;venv_name&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the name of your virtual environment.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;conda install pip&lt;/CODE&gt;. This will install pip to your venv directory.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;At this point you have two versions of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-syntax crayon-syntax-inline  crayon-theme-ado crayon-theme-ado-inline crayon-font-monaco"&gt;&lt;SPAN class="crayon-pre crayon-code"&gt;&lt;SPAN class="crayon-v"&gt;pip&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; installed; a global version and a version specific to your virtual environment. If you try to run&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-syntax crayon-syntax-inline  crayon-theme-ado crayon-theme-ado-inline crayon-font-monaco"&gt;&lt;SPAN class="crayon-pre crayon-code"&gt;&lt;SPAN class="crayon-e"&gt;pip&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="crayon-i"&gt;install&lt;/SPAN&gt;&lt;SPAN class="crayon-h"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="crayon-s"&gt;'package_name'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;you’ll use the global version, which will install the package outside your virtual environment.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Find your anaconda directory, and find the actual venv folder. It should be somewhere like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/anaconda/envs/venv_name/&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Install new packages by doing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/anaconda/envs/venv_name/bin/pip install package_name&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;so:&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;conda create -n my_swat&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;source&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;activate&amp;nbsp;my_swat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;conda install pip&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/anaconda/envs/my_swat/bin/&lt;/SPAN&gt;pip install &lt;A href="https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz" target="_blank"&gt;https://github.com/sassoftware/python-swat/releases/download/v1.5.0/python-swat-1.5.0-win64.tar.gz&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;This should now successfully install packages using that virtual environment's pip.&amp;nbsp; But if you want this for all of python, go to the OS prompt and use pip from there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/517486#M15153</guid>
      <dc:creator>Andy547</dc:creator>
      <dc:date>2018-11-30T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/520018#M15235</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After several trail, I got this error like below... How can I solve this issue? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-12-10 09_14_45-Anaconda Prompt.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25519iA633E2E3D8D1550F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-12-10 09_14_45-Anaconda Prompt.png" alt="2018-12-10 09_14_45-Anaconda Prompt.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/520018#M15235</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-12-10T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/520020#M15236</link>
      <description>Hi Andy, where can I find my virtual environment name? Thank you for your help!</description>
      <pubDate>Mon, 10 Dec 2018 15:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/520020#M15236</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-12-10T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/588230#M17217</link>
      <description>&lt;P&gt;So sorry I missed your post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I am sure you already know you can fix this by adding&amp;nbsp;&amp;nbsp;the following in your pip.ini:&lt;/P&gt;
&lt;PRE class="lang-py prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;trusted&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;host &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; pypi&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;python&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org pypi&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org files&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;pythonhosted&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;org&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or by using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pip install --trusted-host pypi.org PyHamCrest&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/588230#M17217</guid>
      <dc:creator>Andy547</dc:creator>
      <dc:date>2019-09-12T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: pip install swat syntax error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/588239#M17219</link>
      <description>&lt;P&gt;You can list all of your conda environments with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;conda env list&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the * shows the current active environment.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/pip-install-swat-syntax-error/m-p/588239#M17219</guid>
      <dc:creator>Andy547</dc:creator>
      <dc:date>2019-09-12T13:56:52Z</dc:date>
    </item>
  </channel>
</rss>

