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

Problem with install QuantEcon #341

Closed
thuybeu opened this issue Sep 18, 2017 · 5 comments
Closed

Problem with install QuantEcon #341

thuybeu opened this issue Sep 18, 2017 · 5 comments

Comments

@thuybeu
Copy link

thuybeu commented Sep 18, 2017

I have installed QuantEcon according the following link: https://quantecon.org/quantecon-py, I did tried both, but I cannot use QuantEcon, I always got the error: "python setup.py install
python: can't open file 'setup.py': [Errno 2] No such file or directory" when installing it in the terminal, even I put the file in my current working directory.
Then, I try the code: pip install -e QuantEcon.py, then there is no error in my code "import quantecon" like before. Then I tried to use MarkovChain and DiscreteRV, I got the errors:
AttributeError: module 'quantecon' has no attribute 'MarkovChain'
AttributeError: module 'quantecon' has no attribute 'DiscreteRV'
I suppose there were some problems during installing QuantEcon, I hope you can help me to fix this problem.

@jstac
Copy link
Contributor

jstac commented Sep 19, 2017

@thuybeu Thanks for your comment. @mmcky Would you mind to handle this?

@mmcky
Copy link
Contributor

mmcky commented Sep 19, 2017

@thuybeu thanks for raising an issue.

You should be able to install QuantEcon.py using:

pip install quantecon

or if you already have a version installed

pip install --upgrade quantecon

these commands should be done on the command line. The package name on pip is quantecon not QuantEcon.py (looks like you tried: pip install -e QuantEcon.py)

@mmcky
Copy link
Contributor

mmcky commented Sep 19, 2017

This may also be an issue with numba version number. You may want to try upgrading your anaconda environment using:

conda update conda

to update the package manager, and then

conda update anaconda

to update all of the packages on your machine.

@thuybeu
Copy link
Author

thuybeu commented Sep 23, 2017

@jstac, @mmcky: Thank you for your help. There was problem with numba version number. I upgraded it first, then installed quantecon. It finally worked.

@mmcky
Copy link
Contributor

mmcky commented Sep 28, 2017

Thanks for letting us know @thuybeu

@mmcky mmcky closed this as completed Sep 28, 2017
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