<?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: Issues installing via pip. in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545947#M217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello William, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I recommend using python's virtual environment. This is excellent tool to keep dependencies required by different project in separate places by creating python virtual environments for them. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ pip install virtualenv&amp;nbsp; [you might have to sudo install this but it is a trusted library] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, go to your project folder&lt;/P&gt;&lt;P&gt;$ cd project_folder&lt;/P&gt;&lt;P&gt;$ virtualenv venv (this is your name of virtual environment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To activate the virtual environment&lt;/P&gt;&lt;P&gt;$ source venv/bin/activate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you will see (venv) added on your terminal. This means your virtual environment is active and you can install anything you want and it will be contained in that virtual environment without being installed into your local machine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$pip install openVunQuery&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can find more information about it on this link. &lt;A href="http://docs.python-guide.org/en/latest/dev/virtualenvs/" title="http://docs.python-guide.org/en/latest/dev/virtualenvs/"&gt;Virtual Environments — The Hitchhiker's Guide to Python&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 21:12:09 GMT</pubDate>
    <dc:creator>pghimire</dc:creator>
    <dc:date>2016-09-20T21:12:09Z</dc:date>
    <item>
      <title>Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545944#M214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I'm originally a network guy, I'm bringing myself up to speed on this whole process. Usually this involves hitting a wall and then googling my way through it. I've come up against one that I can't seem to find the answers to, though. After installing a bunch of dev packages (libxml2-dev, libxslt1-dev, python-dev, and zlib1g-dev) I'm finally getting farther into installing the openVulnQuery tools via pip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip install openVulnQuery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's still failing, however. Issuing that command:&lt;/P&gt;&lt;P&gt;1. Collects (successfully) openVulnQuery, argparse, lxml, and PrettyTable.&lt;/P&gt;&lt;P&gt;2, Successfully builds lxml&lt;/P&gt;&lt;P&gt;3. Fails in a spectacular sea of red text to "[Install] collected packages: argparse, lxml, PrettyTable, openVulnQuery"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have thoughts about what I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exact output of the command below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Collecting openVulnQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Requirement already satisfied (use --upgrade to upgrade): requests==2.10.0 in /usr/local/lib/python2.7/dist-packages (from openVulnQuery)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Collecting argparse==1.4.0 (from openVulnQuery)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Using cached argparse-1.4.0-py2.py3-none-any.whl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Collecting lxml==3.6.0 (from openVulnQuery)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Collecting PrettyTable==0.7.2 (from openVulnQuery)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Installing collected packages: argparse, lxml, PrettyTable, openVulnQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Found existing installation: argparse 1.2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not uninstalling argparse at /usr/lib/python2.7, as it is in the standard library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp; Can't rollback argparse, nothing uninstalled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;Exception:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = self.run(options, args)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefix=options.prefix_path,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; **kwargs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 831, in install&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.move_wheel_files(self.source_dir, root=root, prefix=prefix)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isolated=self.isolated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/wheel.py", line 346, in move_wheel_files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clobber(source, lib_dir, True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/home/wdismukes/.local/lib/python2.7/site-packages/pip/wheel.py", line 324, in clobber&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shutil.copyfile(srcfile, destfile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; File "/usr/lib/python2.7/shutil.py", line 83, in copyfile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with open(dst, 'wb') as fdst:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/argparse.pyc'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 17:56:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545944#M214</guid>
      <dc:creator>wdismuke</dc:creator>
      <dc:date>2016-09-20T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545945#M215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the following:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/argparse.pyc'&lt;/SPAN&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where you using &lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;sudo&lt;/SPAN&gt; pip install openVulnQuery&lt;/STRONG&gt;?&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 18:28:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545945#M215</guid>
      <dc:creator>Omar Santos</dc:creator>
      <dc:date>2016-09-20T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545946#M216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried both, but when I was looking around it seemed that sudo'ing pip wasn't the correct way to go about it. Should I be sudo'ing it? I can post the content of those errors too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation on the PSIRT site doesn't say to sudo. It just says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: whitesmoke; font-family: 'courier new', courier;"&gt; pip install openVulnQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 19:16:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545946#M216</guid>
      <dc:creator>wdismuke</dc:creator>
      <dc:date>2016-09-20T19:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545947#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello William, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I recommend using python's virtual environment. This is excellent tool to keep dependencies required by different project in separate places by creating python virtual environments for them. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ pip install virtualenv&amp;nbsp; [you might have to sudo install this but it is a trusted library] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, go to your project folder&lt;/P&gt;&lt;P&gt;$ cd project_folder&lt;/P&gt;&lt;P&gt;$ virtualenv venv (this is your name of virtual environment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To activate the virtual environment&lt;/P&gt;&lt;P&gt;$ source venv/bin/activate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you will see (venv) added on your terminal. This means your virtual environment is active and you can install anything you want and it will be contained in that virtual environment without being installed into your local machine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$pip install openVunQuery&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can find more information about it on this link. &lt;A href="http://docs.python-guide.org/en/latest/dev/virtualenvs/" title="http://docs.python-guide.org/en/latest/dev/virtualenvs/"&gt;Virtual Environments — The Hitchhiker's Guide to Python&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:12:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545947#M217</guid>
      <dc:creator>pghimire</dc:creator>
      <dc:date>2016-09-20T21:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545948#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm, thanks. Am I going to run into any issues trying to export the data I'm pulling inside this venve into other processes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:59:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545948#M218</guid>
      <dc:creator>wdismuke</dc:creator>
      <dc:date>2016-09-21T18:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issues installing via pip.</title>
      <link>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545949#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there shouldn't be any such problem. &lt;SPAN style="font-size: 13.3333px;"&gt;Virtual Environment lets you setup all the requirements you need for a project inside a folder and it shouldn't affect other independent process running alongside. If you encounter any problem. Please &lt;/SPAN&gt;Let us know, we will be happy to help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 05:11:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/issues-installing-via-pip/m-p/3545949#M219</guid>
      <dc:creator>pghimire</dc:creator>
      <dc:date>2016-09-27T05:11:55Z</dc:date>
    </item>
  </channel>
</rss>

