-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not import pysindy after installation #529
Comments
Problem solved. Need to install "cvxpy" first. |
No, this is an issue. cvxpy is an optional dependency, and it shouldn't block importing the file likely needs a What's your pysindy version? |
I had a similar problem, but it's causing the error below. I like to test using Google Colab, I never had any trouble until today! I tried to remove the derivative package, install the correct version of the importlib_metadata and run again, but unsuccessful. So I had to use the virtual environment to deal with and make it work
|
Hi Talitta, I'm not sure what you were trying to to accomplish that prompted this error, but using a virtual environment is normal practice to prevent version conflicts. I'm not familiar with google's installation package management system, however. It appears you have a conflict because |
This comment was marked as duplicate.
This comment was marked as duplicate.
For those with the |
The same thing happened to me. I installed Sindy directly from the git repository, I use Windows, Anaconda.
|
Can you help me please? I explained the problem above |
This package is a backport of part of the core library in 3.10, so is extremely stable. It will no longer be required in a year, when 3.9 reaches EOL. In the meantime, it is causing plenty of failures of pysindy installs. See dynamicslab/pysindy#547 and coments on dynamicslab/pysindy#529.
I installed pysindy from a local copy, and it shows a successful installation. But when I tried to import the package on Python, an error came out as "NameError: name 'cp' is not defined". The details are attached below. Can anyone help me with this issue? Many thanks!
NameError Traceback (most recent call last)
Cell In[5], line 1
----> 1 import pysindy as ps
cost = cp.sum_squares(x_expanded @ xi - y.flatten())
NameError: name 'cp' is not defined
The text was updated successfully, but these errors were encountered: