Skip to content
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

Failed to import LinearStateSpace #513

Closed
AngelaChang119 opened this issue Nov 4, 2019 · 4 comments
Closed

Failed to import LinearStateSpace #513

AngelaChang119 opened this issue Nov 4, 2019 · 4 comments

Comments

@AngelaChang119
Copy link

from quantecon import LinearStateSpace
File "/usr/local/lib/python2.7/site-packages/quantecon/game_theory/normal_form_game.py", line 471
return NE[0] @ D @ NE[1] > tol
^
SyntaxError: invalid syntax

Environment:
Python 2.7.15 + IPython 5.8.0

@cc7768
Copy link
Member

cc7768 commented Nov 4, 2019

The issue is that we no longer support anything less than Python 3.5. One reason we chose to do this is that we choose to make use of the @ operator for matrix multiplication within the library for readability reasons.

Try upgrading Python and let us know whether it still is broken (though it looks like this error comes from the @ operator not being defined in Python 2.7).

@mmcky
Copy link
Contributor

mmcky commented Nov 4, 2019

thanks @cc7768. @AngelaChang119 please let us know how you go with python>=3.5. We typically recommend using: https://www.anaconda.com/distribution/

@AngelaChang119
Copy link
Author

The issue is that we no longer support anything less than Python 3.5. One reason we chose to do this is that we choose to make use of the @ operator for matrix multiplication within the library for readability reasons.

Try upgrading Python and let us know whether it still is broken (though it looks like this error comes from the @ operator not being defined in Python 2.7).

thanks @cc7768. @AngelaChang119 please let us know how you go with python>=3.5. We typically recommend using: https://www.anaconda.com/distribution/

Thank you very much! I install python 3.7.5 and successfully import quantecon.

@mmcky
Copy link
Contributor

mmcky commented Nov 5, 2019

good news. Thanks @AngelaChang119

@mmcky mmcky closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants