Coder Social home page Coder Social logo

pygsti cannot run on Windows about pygsti HOT 3 CLOSED

ldes89150 avatar ldes89150 commented on July 26, 2024
pygsti cannot run on Windows

from pygsti.

Comments (3)

ldes89150 avatar ldes89150 commented on July 26, 2024

After I installed psutil, I can use pygsti now. Is it possible to make psutil be one of its dependencies while installing with pip on Windows platform?

from pygsti.

enielse avatar enielse commented on July 26, 2024

The resource module is usually included as part of the standard Python library (I think as of v2.7 at least?), so it's weird that your anaconda distribution doesn't include it. PyGSTi doesn't require psutil because it only uses it for memory profiling and can fall back on the (usually always-present) resource module if psutil isn't there. This is why your workaround works: if you have the optional psutil package then pyGSTi prefers this and resource is never needed. I think it makes sense to leave psutil as an optional dependency in pyGSTi, which leaves you with several possible workarounds:

  • install a more complete Python for Windows; I've used Enthought Canopy successfully.
  • install pygsti via pip install pygsti and install psutil separately, as you've mentioned.
  • install pygsti with it's optional psutil dependency via pip install pygsti.[accurate memory profiling] (note: you can also use .[complete] which will cause pip to install all of pyGSTi's optional dependencies).

from pygsti.

robpkelly avatar robpkelly commented on July 26, 2024

I'm closing this issue since the workaround is preferable to other long-term fixes.

from pygsti.

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.