<?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 pip import error: cannot import name main- after installing pipenv in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pip-import-error-cannot-import-name-main-after/m-p/556638#M43511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I am trying to use &lt;A href="https://docs.pipenv.org/"&gt;pipenv&lt;/A&gt; as well as pip and having some issues. &lt;SPAN&gt;I installed pipenv using pip. Then I went back and tried to run&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;pip -v&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and got the following:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;ImportError: cannot import name main.&amp;nbsp;&lt;/CODE&gt;I have seen&amp;nbsp;similar problems&amp;nbsp;answered for Linux and Mac, but I cannot use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;sudo&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;which&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;commands; I am on Windows 10 using the CMD console. &lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In my scripts folder, I see pip, pip2.7, and pip2. I cannot remember which one was my system pip. I know I need to maybe uninstall and reinstall (I have already tried to upgrade, but of course, without pip running you can't upgrade pip). I don't want to make more of a mess, so I wanted to ask how to resolve this in the CMD console on Windows.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 14:59:09 GMT</pubDate>
    <dc:creator>JustinBridwell2</dc:creator>
    <dc:date>2018-07-30T14:59:09Z</dc:date>
    <item>
      <title>pip import error: cannot import name main- after installing pipenv</title>
      <link>https://community.esri.com/t5/python-questions/pip-import-error-cannot-import-name-main-after/m-p/556638#M43511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I am trying to use &lt;A href="https://docs.pipenv.org/"&gt;pipenv&lt;/A&gt; as well as pip and having some issues. &lt;SPAN&gt;I installed pipenv using pip. Then I went back and tried to run&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;pip -v&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and got the following:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;ImportError: cannot import name main.&amp;nbsp;&lt;/CODE&gt;I have seen&amp;nbsp;similar problems&amp;nbsp;answered for Linux and Mac, but I cannot use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;sudo&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;which&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;commands; I am on Windows 10 using the CMD console. &lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In my scripts folder, I see pip, pip2.7, and pip2. I cannot remember which one was my system pip. I know I need to maybe uninstall and reinstall (I have already tried to upgrade, but of course, without pip running you can't upgrade pip). I don't want to make more of a mess, so I wanted to ask how to resolve this in the CMD console on Windows.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 14:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pip-import-error-cannot-import-name-main-after/m-p/556638#M43511</guid>
      <dc:creator>JustinBridwell2</dc:creator>
      <dc:date>2018-07-30T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: pip import error: cannot import name main- after installing pipenv</title>
      <link>https://community.esri.com/t5/python-questions/pip-import-error-cannot-import-name-main-after/m-p/556639#M43512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Apparently, when I installed pipenv, it changed the system pip version that I was previously using. For some reason, all of the answers I found were using Linux or Mac, but here is how I resolved it. Simply open your command prompt and type:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; $python &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;m pip uninstall pip&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Then, test that you still have your old version installed by typing:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; $pip &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;V&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;This showed me that I had gone from using pip version 18 back to using version 8.1.1. You should then be able to proceed to other tasks using pip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pip-import-error-cannot-import-name-main-after/m-p/556639#M43512</guid>
      <dc:creator>JustinBridwell2</dc:creator>
      <dc:date>2018-07-30T17:43:09Z</dc:date>
    </item>
  </channel>
</rss>

