<?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 Anybody has luck with import arcpy in 10.5.1? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758434#M58522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The import arcpy doesn't work in 10.5.1 ArcGIS Desktop installation of python 2.7.13. Anybody in the same boat?&lt;/P&gt;&lt;P&gt;I have both ArcGIS Server and Desktop installed in this machine. But, default python is 32 bit one. The pth variables and environment variables are all good (as it works fine in a Desktop 10.3 installation with same configuration). I even run a repair on this installation. Nothing works.&lt;/P&gt;&lt;P&gt;Here is the error which I get on running import arcpy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;H:\&amp;gt;python&lt;BR /&gt;Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (&lt;BR /&gt;Intel)] on win32&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; print sys.executable&lt;BR /&gt;C:\Python27\ArcGIS10.5\python.exe&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\__init__.py", line&lt;BR /&gt;&amp;nbsp;20, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, i&lt;BR /&gt;n &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13,&lt;BR /&gt;&amp;nbsp;in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 18&lt;BR /&gt;, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .polynomial import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\polynomial.py", line&lt;BR /&gt;19, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import eigvals, lstsq, inv&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\__init__.py", line&lt;BR /&gt;&amp;nbsp;51, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .linalg import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\linalg.py", line 2&lt;BR /&gt;9, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import lapack_lite, _umath_linalg&lt;BR /&gt;ImportError: DLL load failed: The specified path is invalid.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I initiated a tech support case with ESRI and they don't have anything new to contribute as they think that it's a bug. So, they transferred my case to Desktop team from where I am waiting for a response. Meanwhile, I thought of posting it in the community to see whether anybody has luck with solving this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 11:43:40 GMT</pubDate>
    <dc:creator>RajuGopinath1</dc:creator>
    <dc:date>2017-10-13T11:43:40Z</dc:date>
    <item>
      <title>Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758434#M58522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The import arcpy doesn't work in 10.5.1 ArcGIS Desktop installation of python 2.7.13. Anybody in the same boat?&lt;/P&gt;&lt;P&gt;I have both ArcGIS Server and Desktop installed in this machine. But, default python is 32 bit one. The pth variables and environment variables are all good (as it works fine in a Desktop 10.3 installation with same configuration). I even run a repair on this installation. Nothing works.&lt;/P&gt;&lt;P&gt;Here is the error which I get on running import arcpy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;H:\&amp;gt;python&lt;BR /&gt;Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (&lt;BR /&gt;Intel)] on win32&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; print sys.executable&lt;BR /&gt;C:\Python27\ArcGIS10.5\python.exe&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\__init__.py", line&lt;BR /&gt;&amp;nbsp;20, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, i&lt;BR /&gt;n &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13,&lt;BR /&gt;&amp;nbsp;in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 18&lt;BR /&gt;, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .polynomial import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\polynomial.py", line&lt;BR /&gt;19, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import eigvals, lstsq, inv&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\__init__.py", line&lt;BR /&gt;&amp;nbsp;51, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .linalg import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\linalg.py", line 2&lt;BR /&gt;9, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import lapack_lite, _umath_linalg&lt;BR /&gt;ImportError: DLL load failed: The specified path is invalid.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I initiated a tech support case with ESRI and they don't have anything new to contribute as they think that it's a bug. So, they transferred my case to Desktop team from where I am waiting for a response. Meanwhile, I thought of posting it in the community to see whether anybody has luck with solving this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758434#M58522</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T11:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758435#M58523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best thing is to uninstall all versions of python and do a repair of ArcMap using Windows add/remove programs ... then select repair.&amp;nbsp; Python will be installed and it should now point to the correct version.&amp;nbsp; But you said that worked? was that after you removed all other versions of python?&amp;nbsp; also check to see if the modules in numpy.linalg ... lapack_lite, _umath_linalg ... actually exist... they are *.pyd files for both.&amp;nbsp; Barring that you will have to examine the Test folder there to see if you matching/installation is failing one of the tests&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 12:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758435#M58523</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-13T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758436#M58524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan- I don't have any other versions of python in that box where10.5.1 is installed. I mentioned that arcpy import is working in Desktop 10.3 version. So, something might be missing in 10.5.1. Regarding repair, I already repaired arcgis installation of python in 10.5.1 machine with no luck. Please see the screenshot of linalg folder- I have all those files in python folder. &lt;BR /&gt;If "import arcpy" is working on your ArcGIS Desktop 10.5.1/Python 2.7.13, do you mind uploading your numpy folder as a zip file?&lt;BR /&gt;We have 2 machines with 10.5.1 installed (one an upgrade from 10.3 and other a fresh install). But "import arcpy" is not working in either of them. I don't want to copy numpy from a 10.3 machine with 2.7.8 version of python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 12:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758436#M58524</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758437#M58525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As indicated, two versions of python seem to being found.&amp;nbsp; If you want one version, all existing versions must be installed prior to repairing.&lt;/P&gt;&lt;P&gt;Copying portions of a numpy installation won't work if there are failures in the checks of the imports... In the case of importing numpy.linalg it is the __init__.py file that controls that.&lt;/P&gt;&lt;P&gt;You can try checking paths and registry edits, but clean installations usually work unless you have some weird hardware software configuration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:07:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758437#M58525</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-13T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758438#M58526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan- As indicated in my 2 previous comments, I don't have 2 versions of python in that box. OS is windows 2008 R2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758438#M58526</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T13:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758439#M58527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be confused,&amp;nbsp; you said you have server and desktop installed on that machine, which suggested python is installed with each... worth a check because something isn't pointing to the right configuration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758439#M58527</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-13T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758440#M58528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you&amp;nbsp;try?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import numpy&lt;/P&gt;&lt;P&gt;print(numpy.linalg)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:26:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758440#M58528</guid>
      <dc:creator>HåkonDreyer</dc:creator>
      <dc:date>2017-10-13T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758441#M58529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't go past importing numpy. &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;H:\&amp;gt;python&lt;BR /&gt;Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (&lt;BR /&gt;Intel)] on win32&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import numpy&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, i&lt;BR /&gt;n &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13,&lt;BR /&gt;&amp;nbsp;in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 18&lt;BR /&gt;, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .polynomial import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\polynomial.py", line&lt;BR /&gt;19, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import eigvals, lstsq, inv&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\__init__.py", line&lt;BR /&gt;&amp;nbsp;51, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .linalg import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\linalg.py", line 2&lt;BR /&gt;9, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import lapack_lite, _umath_linalg&lt;BR /&gt;ImportError: DLL load failed: The specified path is invalid.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758441#M58529</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T13:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758442#M58530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PythonWin &lt;SPAN class="number token"&gt;2.7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;13&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;v2&lt;SPAN class="number token"&gt;.7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;13&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;a06454b1afa1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Dec &lt;SPAN class="number token"&gt;17&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2016&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;42&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;59&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;MSC v&lt;SPAN class="number token"&gt;.1500&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;32&lt;/SPAN&gt; bit &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Intel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; on win32&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
Portions Copyright &lt;SPAN class="number token"&gt;1994&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2008&lt;/SPAN&gt; Mark Hammond &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; see &lt;SPAN class="string token"&gt;'Help/About PythonWin'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; further copyright information&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; numpy &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; np
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\ArcPro\\Resources\\ArcToolBox\\Scripts'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\ArcPro\\Resources\\ArcPy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Git_Dan'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\WINDOWS\\SYSTEM32\\python27.zip'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\DLLs'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\plat-win'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\lib-tk'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\Lib\\site-packages\\pythonwin'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\bin'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcPy'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcToolBox\\Scripts'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages\\win32'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages\\win32\\lib'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have Pro and arcmap installed, so just ignore the c:\arcpro folders&lt;/P&gt;&lt;P&gt;Compare to yours&lt;/P&gt;&lt;P&gt;Notice import numpy worked just fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758442#M58530</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758443#M58531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. All the path variables looks fine compared to yours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;H:\&amp;gt;python&lt;BR /&gt;Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (&lt;BR /&gt;Intel)] on win32&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;BR /&gt;['', 'E:\\Python_Modules', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\&lt;BR /&gt;\ArcGIS10.5\\DLLs', 'C:\\Python27\\ArcGIS10.5\\lib', 'C:\\Python27\\ArcGIS10.5\\&lt;BR /&gt;lib\\plat-win', 'C:\\Python27\\ArcGIS10.5\\lib\\lib-tk', 'C:\\Python27\\ArcGIS10&lt;BR /&gt;.5', 'C:\\Python27\\ArcGIS10.5\\lib\\site-packages', 'C:\\Program Files (x86)\\A&lt;BR /&gt;rcGIS\\Desktop10.5\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcPy',&lt;BR /&gt;&amp;nbsp;'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcToolBox\\Scripts']&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Do you see anything which I overlooked?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758443#M58531</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758444#M58532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have both Desktop and Server on your machine, you &lt;EM&gt;&lt;STRONG&gt;must&lt;/STRONG&gt;&lt;/EM&gt; have two copies of Python (32-bit and 64-bit).&amp;nbsp; If you had an old version of Python with the 10.3.1 install, then you might have as many as three installs (four, if Server or 64-bit Background Geoprocessing was installed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;STRONG&gt;import arcpy&lt;/STRONG&gt;&lt;/SPAN&gt; works on &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;every&lt;/EM&gt;&lt;/SPAN&gt; one of my 10.5.1 installs (both 32-bit and 64-bit, since I install&amp;nbsp;Desktop 64-bit Background Geoprocessing), so the problem is specific to your installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should make sure the appropriate bin or bin64 folder is in your PATH variable (different install order with default PATH will cause all manner of install issues -- If Windows finds the right DLL name, but it's the incorrect word size, it will report "File Not Found").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758444#M58532</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-10-13T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758445#M58533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is&amp;nbsp;in the e:\Python_modules&amp;nbsp;folder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758445#M58533</guid>
      <dc:creator>HåkonDreyer</dc:creator>
      <dc:date>2017-10-13T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758446#M58534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a custom Python module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758446#M58534</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758447#M58535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your PATH variable look like? Basically,I have the same config in 10.3.1 production machine. The config which worked in 10.3.1 didn't work in 10.5.1- that's where I am confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758447#M58535</guid>
      <dc:creator>RajuGopinath1</dc:creator>
      <dc:date>2017-10-13T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758448#M58536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;PATH&lt;/SPAN&gt; (system environment variable) needs to change with release, since the version number is part of the name with the site package. &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;sys.path&lt;/SPAN&gt; is assembled from &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;PATH&lt;/SPAN&gt; and site package loading instructions. I prepend &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;C:\Python27\ArcGIS10.&lt;EM&gt;n&lt;/EM&gt;&lt;/SPAN&gt;; or&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;C:\Python27\ArcGISx6410.&lt;EM&gt;n&lt;/EM&gt;; &lt;/SPAN&gt;to &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;PATH&lt;/SPAN&gt; in the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;cmd.exe&lt;/SPAN&gt; window or shell script (where &lt;EM style="font-family: courier new,courier,monospace;"&gt;n&lt;/EM&gt; is the installed release)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 16:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758448#M58536</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-10-13T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758449#M58537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is your path to Python C:\Python27\ArcGIS10.5\?&amp;nbsp; I have never seen that before. Also, I NEVER let ArcGIS install Python.&amp;nbsp; Since I do more Python development outside of ESRI than inside, I do the standard Python installation and not the ESRI Python installation.&amp;nbsp; I recommend the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st clean everything up:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Uninstall all Python site-packages like NumPy.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Uninstall Python.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Uninstall all related ESRI software.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Check directories to see that the uninstalls are clean.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; Check your path and remove all paths to Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd reinstall everything:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Install 32 bit Python 2.7.n where n is probabably 13 or 14 now.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Install the NumPy and other site packages with pip which is the built-in Python site package installer.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Check that you path is properly set for Python.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Check that Python will work at the command line and with a test program such as helloworld.py and also try to import NumPy and other site packages&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;&lt;STRONG&gt; Install the ESRI software with Python unchecked so another version of Python is NOT&amp;nbsp; installed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;6.&amp;nbsp; Test Python in ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 18:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758449#M58537</guid>
      <dc:creator>StevenHaymes1</dc:creator>
      <dc:date>2017-10-19T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758450#M58538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar issue after installing Pro on my machine.&amp;nbsp; Having both Pro and Desktop&amp;nbsp;on the machine has caused me lots of grief.&amp;nbsp; The link below may help you with your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/178693/using-arcpy-with-arcgis-pro-and-arcgis-desktop-on-same-machine"&gt;https://gis.stackexchange.com/questions/178693/using-arcpy-with-arcgis-pro-and-arcgis-desktop-on-same-machine&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 13:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758450#M58538</guid>
      <dc:creator>MichaelMixon</dc:creator>
      <dc:date>2017-10-20T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758451#M58539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you receive any resolution on this?&amp;nbsp; I have almost the exact same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had Anaconda installed to help someone with a script outside of ArcGIS.&lt;/P&gt;&lt;P&gt;I uninstalled Anaconda.&amp;nbsp; This did't help.&lt;/P&gt;&lt;P&gt;I completely uninstalled 10.5.1 and reinstalled.&amp;nbsp; This did not solve my problem.&lt;/P&gt;&lt;P&gt;My sys.path shows this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;BR /&gt;['', u'c:\\program files (x86)\\arcgis\\desktop10.5\\arcpy', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\ArcGIS10.5\\DLLs', 'C:\\Python27\\ArcGIS10.5\\lib', 'C:\\Python27\\ArcGIS10.5\\lib\\plat-win', 'C:\\Python27\\ArcGIS10.5\\lib\\lib-tk', 'C:\\Python27\\ArcGIS10.5', 'C:\\Python27\\ArcGIS10.5\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcPy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcToolBox\\Scripts']&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do import numpy, I see this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .type_check import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\type_check.py", line 11, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy.core.numeric as _nx&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\__init__.py", line 9, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import numerictypes as nt&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\numerictypes.py", line 968, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _register_types()&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\numerictypes.py", line 965, in _register_types&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; numbers.Integral.register(integer)&lt;BR /&gt;AttributeError: 'module' object has no attribute 'Integral'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or insight from anyone, is greatly appreciated.&lt;/P&gt;&lt;P&gt;I do have ArcPro 2.0.1&amp;nbsp; Both Desktop and Pro were running fine.&amp;nbsp; I don't think I "unchecked" the correct boxes for Anaconda, but with a full uninstall/re-install of ArcGIS 10.5.1, I thought this would solve my problem, but it did not.&amp;nbsp; I do see that I still have the C:\Python27\ArcGIS10.4 folder still around, since I originally upgraded in place 10.5.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance or insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&amp;nbsp;&lt;/STRONG&gt; I deleted the ArcGIS10.4 folder, I completely uninstalled 10.5.1.&amp;nbsp; I reinstalled the 10.5.1 software,&amp;nbsp; took all of the defaults for the install.&lt;/P&gt;&lt;P&gt;I made sure before I reinstalled, that Python was not on my system.&lt;/P&gt;&lt;P&gt;I can type in Python at a CMD window and type in import numpy, import arcpy.&amp;nbsp; A prompt returns, no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I write a simple script in the IDLE window with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "test"&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;print "this is a test"&lt;/P&gt;&lt;P&gt;The first line is printed in the shell, then I get an error that the import arcpy line doesn't work.&amp;nbsp; See the errors below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use CMD to bring up a prompt, then type in "python" to get a python prompt and type in&amp;nbsp;&lt;/P&gt;&lt;P&gt;print "test"&lt;/P&gt;&lt;P&gt;test (is printed)&lt;/P&gt;&lt;P&gt;import arcpy (prompt is returned)&lt;/P&gt;&lt;P&gt;print "this is a test"&lt;/P&gt;&lt;P&gt;this is a test (is printed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tested within ArcMap using the Python window and did a Buffer.&amp;nbsp; The buffer was successful using the Python window.&lt;/P&gt;&lt;P&gt;I am really not sure what is/could be going on.&lt;/P&gt;&lt;P&gt;I believe I have only one installation of Python (the 2.7.13 that comes with the ESRI 10.5.1 install).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:\temp\junk4.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\__init__.py", line 20, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .type_check import *&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\type_check.py", line 11, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy.core.numeric as _nx&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\__init__.py", line 9, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import numerictypes as nt&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\numerictypes.py", line 968, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _register_types()&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\core\numerictypes.py", line 965, in _register_types&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; numbers.Integral.register(integer)&lt;BR /&gt;AttributeError: 'module' object has no attribute 'Integral'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I also noticed this....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had part of a simple script I wrote to demonstrate how to work with numbers.&amp;nbsp; I called this script numbers.py and saved it in my "c:\temp" folder.&lt;/P&gt;&lt;P&gt;When I posted my error messages above, the results of my numbers.py script were showing up and I could not figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running this script (or when re-installing ArcGIS and the 2.7.13 version of Python, I noticed that a numbers.pyc file was also created in c:\temp.&amp;nbsp; I did not create the .pyc file.&lt;/P&gt;&lt;P&gt;As a test, I renamed both the numbers.py and numbers.pyc files to numbersx.py and numbersx.pyc. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I reran my scripts, they all worked!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even did an independent test with a simple numpy script from here: &amp;nbsp;&lt;A href="https://docs.scipy.org/doc/numpy-dev/user/quickstart.html"&gt;https://docs.scipy.org/doc/numpy-dev/user/quickstart.html&lt;/A&gt; to test the use of the numpy module.&lt;/P&gt;&lt;P&gt;A script using seems to work.&amp;nbsp; I tested a script using the buffer routine to test the use of the arcpy module.&amp;nbsp; This seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why having a script I wrote, called &lt;STRONG&gt;numbers.py&lt;/STRONG&gt; in the c:\temp folder should matter, but it does.&lt;/P&gt;&lt;P&gt;I did see that there is a numbers.py file in the&amp;nbsp;C:\Python27\ArcGIS10.5\Lib which relates to the functioning of Python, so I am guessing that the file I created in my temp folder was causing the problem.&amp;nbsp; &lt;STRONG&gt;If anyone has any insight on this, please share.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, I will be more careful with naming my python scripts.&amp;nbsp; I was using what I thought was simple names so others newer to Python could use my scripts to learn.&lt;/P&gt;&lt;P&gt;The teacher continues to learn, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 05:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758451#M58539</guid>
      <dc:creator>NathanJennings</dc:creator>
      <dc:date>2018-01-16T05:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody has luck with import arcpy in 10.5.1?</title>
      <link>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758452#M58540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate:&lt;/P&gt;&lt;P&gt;I got it resolved. I did so many reinstalls of python (which could have avoided- just trial and error) as I mentioned before. But, I think what the real issue was- user permissions and default directory path (I am using windows). My suggestion is to give full privileges (at least edit or update)&amp;nbsp; generously to all folders which has python installation and which python uses like:&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\&lt;/P&gt;&lt;P&gt;C:\Python27&lt;/P&gt;&lt;P&gt;...and any user/script folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default drive path was creating additional issues for me as it was defaulting to network drive due to our company domain policy. To check this, open your comand prompt and see whether the initial path is pointing to your local drive or to your network drive home folder. If it's pointing to network drive, that will be your problem.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;To point it back to local drive, I found that a small registry hack will help. Adding a string value “AutoRun” with data “C:” in HKEY_CURRENT_USER\Software\Microsoft\Command Processor will fix that issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Also note that: changing the Autorun value may mess up Node run parameters, if you're using Web App Builder Dev edition. I had to use Python Http server instead of node in my local machine for development purpose after this registry fix.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anybody-has-luck-with-import-arcpy-in-10-5-1/m-p/758452#M58540</guid>
      <dc:creator>RajuGopinath</dc:creator>
      <dc:date>2018-01-17T13:14:41Z</dc:date>
    </item>
  </channel>
</rss>

