Coder Social home page Coder Social logo

Comments (6)

tom-montgomery avatar tom-montgomery commented on July 28, 2024 6

got it to work after reinstalling ArcGIS. Not sure what was going on with my python environment/interpreter. Thanks!

from registrant.

AlexArcPy avatar AlexArcPy commented on July 28, 2024

Thanks for posting. This looks interesting. I have set a fresh VM with Windows 7 and ArcGIS 10.3.1, so the environment matches yours.

  1. Downloaded and installed pip from https://bootstrap.pypa.io/get-pip.py. This installed setuptools.
  2. Added C:\Python27\ArcGIS10.3 to the Windows PATH variable.
  3. Installed Microsoft Visual C++ Compiler for Python 2.7 available from http://aka.ms/vcpython27 (required to install compiled pandas). ArcGIS 10.3.1 ships with an older version of pandas.
  4. Downloaded the repo and used Windows CMD while being in the folder with unpacked repo to run python setup.py install.
  5. Open IDLE and run import registrant. No problem.

Let's try troubleshooting your installation.

import pandas as pd and pd.__version__ should give you 0.20.3. Maybe you have screwed something with paths to two different pandas and now you cannot import the right one?

As the worst case scenario, would re-installing ArcGIS to get a fresh Python be an applicable solution?

from registrant.

tom-montgomery avatar tom-montgomery commented on July 28, 2024

Just checked my pandas version and I think you are onto something there as it shows '0.10.1'. I will try to upgrade it, but if i remember correctly ArcGIS 10.3x depency on numpy 1.7.1 prevents me from upgrading to 0.20.3 if i want to continue in this environment. I will let you know if I am able.

from registrant.

AlexArcPy avatar AlexArcPy commented on July 28, 2024

numpy.__version__ gives me 1.7.1. Have no problem operating ArcGIS 10.3.1 on this machine.

from registrant.

tom-montgomery avatar tom-montgomery commented on July 28, 2024

tried to upgrade pandas and it broke my arcpy/numpy for my arcgis interpreter.. reinstalling now will let you know the status afterwards.

from registrant.

AlexArcPy avatar AlexArcPy commented on July 28, 2024

Glad you got it working! Perhaps the initial attempt to upgrade pandas update broke something and the only way to fix it was to reinstall the whole Python environment. Feel free to submit any requests on the functionality you would think would be helpful!

from registrant.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.