Code Monkey home page Code Monkey logo

Comments (14)

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu What happens when you run python setup.py develop?

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

@michaelbynum Same thing happened.

D:\Research_Y2\WNTR-psv_support>python setup.py develop
running develop
running egg_info
writing top-level names to wntr.egg-info\top_level.txt
writing dependency_links to wntr.egg-info\dependency_links.txt
writing wntr.egg-info\PKG-INFO
reading manifest file 'wntr.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'LICENSE.txt'
writing manifest file 'wntr.egg-info\SOURCES.txt'
running build_ext
building 'wntr.sim.aml._evaluator' extension
error: [WinError 2] The system cannot find the file specified

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu Are you using a 32-bit machine?

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

I just checked. It is a 64-bit machine.

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu What version of python?

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu Also, how did you install python?

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

@michaelbynum I just checked my python is 32-bit. Could this be the problem? I use Anaconda to run python.

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu Yes, I believe this is the problem. Conda-forge does not support 32-bit builds, so we don't have any pre-compiled binaries for 32-bit systems right now. My advice would be to download the 64-bit version of anaconda. I know that is annoying, and I apologize. Alternatively, if you have a c++ compiler, you could change the build flag in setup.py to True, and then run python setup.py install.

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

@michaelbynum Problem solved! Thank you for your help.

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu Great! For future reference, what was your fix? Did you use a 64-bit version of anaconda?

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

I did a couple things. First, I installed 64-bit version of Anaconda, I also updated my Python to the same version. Second, I installed Visual Studio C++ build tool as required in the command window. After that, the installation went through without any problem.

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu I was hoping that you would not have to compile anything once you updated to the 64-bit version of Anaconda/Python. Did you actually compile anything? Did you change the build flag in setup.py to True or did you leave it as False?

I apologize for the many questions. I just want to make sure the install process is easy in the future.

from wntr.

emmaliulu avatar emmaliulu commented on May 31, 2024

@michaelbynum No, I did not compile anything. I just installed the VS build tool, and then the installation went through.

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

@emmaliulu Oh, okay. Great! Thanks.

from wntr.

Related Issues (20)

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.