I had 2 versions of pandas (22 and 23) in my Anaconda environment for Python 3.6. One of the pandas looks like it was installed through Python 2.7 pip. Basically, I am unable to import pandas at all into my code. It has been recommended that I completely uninstall and reinstall Anaconda. This seems like overkill, but I am going to try it. Nothing I attempted using conda or the Anaconda environment console seemed to work. My question is, how do I safely uninstall and reinstall Anaconda without messing up my ArcGIS Pro environment or my Python 3.6 (do I need to uninstall and reinstall that too?!) Help!

  • Why do not you use a virtualenv? Check if you have no pandas.py file, I already made that mistake.
    – hugonbg
    Oct 3 '18 at 18:34
  • 2
    definitely reinstall anaconda. been there multiple times. complete reinstall is needed including arcgis.
    – atxgis
    Oct 3 '18 at 18:37
  • 2
    @hugonbg probably because they are trying to use pandas with arcgis
    – atxgis
    Oct 3 '18 at 18:38
  • I am not sure how to use a virtual env. Pandas works in the root environment. What folder would my pandas.py file be in? I am looking under C:\anaconda3\envs but I don't see anything?
    – gwydion93
    Oct 3 '18 at 18:46
  • @atxgis - for clarification, you mean the a reinstall of the arcgis module, not arGIS Pro or Desktop, correct?
    – gwydion93
    Oct 3 '18 at 18:57

From command prompt run conda uninstall pandas. Make sure you're in the correct version by navigating to Anaconda 3.6 or 2.7 folder and Shift + Right Click to open command prompt or powershell for whichever version of windows you have.

  • OK, I was going to do that, but I said it was also going to uninstall my arcgis module.The following packages will be REMOVED: arcgis: 1.4.1-py36h52c3b5e_1 esri geopandas: 0.3.0-py36_0 pandas: 0.23.4-py36h830ac7b_0
    – gwydion93
    Oct 3 '18 at 18:42
  • For clarity, are you using ArcMap? Normally ArcGIS10x folder is in C:/Python27 but Anaconda installs differently. Oct 3 '18 at 18:44
  • I am using arcMap and ArcGIS Pro. I basically copied my ArcGIS Pro env into the Anaconda env so I would have arcpy functionality. Arcpy doesn't come with Anaconda right out of the box.
    – gwydion93
    Oct 3 '18 at 18:48
  • I don't have any experience with Pro but ArcMap usually just uses Python2.7 is there a reason to have 3.6? Oct 3 '18 at 18:51
  • 1
    Best chance to quickly resolve is to probably uninstall Anaconda and reinstall. It'd fix importing issues. I used to rename my python 3.6 .exe file to python3 or pip3 so you know where your installing when using pip.( 'pip3 install pyperclip') Oct 3 '18 at 19:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.