Coder Social home page Coder Social logo

Comments (7)

momargoh avatar momargoh commented on July 19, 2024

The pip version is completely outdated. I have rewritten the code using Cython in an attempt to speed it up, whereas the version on pip is pure Python. Have a look at the README file, there are instructions on installing MCycle from the source code here on Github.

from mcycle.

shigubuhua avatar shigubuhua commented on July 19, 2024

I install from github :)

pip search mcycle
mcycle (0.1.3) - Power cycle sizing and analysis package
INSTALLED: 1.0.1
LATEST: 0.1.3

from mcycle.

momargoh avatar momargoh commented on July 19, 2024

Great, so just to confirm: you are able to run quickstart.py successfully now? If so I'll close this Issue. Cheers :)

from mcycle.

shigubuhua avatar shigubuhua commented on July 19, 2024

Wait a moment...
I found i used "pip install -U -e ." to install.
Now i use "py setup.py install" to try.

from mcycle.

shigubuhua avatar shigubuhua commented on July 19, 2024

After i uninstall mcycle and remove git dir, i reclone source code from github and py setup.py install.
When i run py quickstart.py, i have error:

λ py quickstart.py
Traceback (most recent call last):
File "quickstart.py", line 3, in
import mcycle as mc
File "D:\python\36-64\lib\site-packages\mcycle-1.0.1-py3.6-win-amd64.egg\mcycle_init_.py", line 15, in
from . import bases
File "D:\python\36-64\lib\site-packages\mcycle-1.0.1-py3.6-win-amd64.egg\mcycle\bases_init_.py", line 1, in
from .mcabstractbase import MCAB
ModuleNotFoundError: No module named 'mcycle.bases.mcabstractbase'

:(

from mcycle.

shigubuhua avatar shigubuhua commented on July 19, 2024

Finally, I uninstall mcycle. And, directly import source git dir.

import sys
try:
sys.path.append(r"D:\git\MCycle_cpython\")
import mcycle as mc
except Exception as e:
print(f"import is error: {e}")
raise

Then, running quickstart.py is OK.

from mcycle.

momargoh avatar momargoh commented on July 19, 2024

great, I'll close this issue now

from mcycle.

Related Issues (7)

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.