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

Install a package #18

Open
AIITech opened this issue Sep 23, 2019 · 3 comments
Open

Install a package #18

AIITech opened this issue Sep 23, 2019 · 3 comments

Comments

@AIITech
Copy link

AIITech commented Sep 23, 2019

Hi,

Thank you for this creative platform. It is amazing.
I just want to ask how to install a python library. I am trying to import numpy library but I got this error ( No module named 'numpy' ).
I tried to solve this problem by adding ( numpy==1.16.5 ) to ( binder/requirements.txt ) but I still get the same error.
Could you tell me please how to add python packages to ( course-starter-python )?

Thanks in advance.

@ines
Copy link
Owner

ines commented Sep 24, 2019

I tried to solve this problem by adding ( numpy==1.16.5 ) to ( binder/requirements.txt ) but I still get the same error.

Yes, this should work. Make sure you actually add that change to the binder branch and then rebuild the Binder: https://github.com/ines/course-starter-python#setting-up-binder

@hfboyce
Copy link
Contributor

hfboyce commented Jan 14, 2020

Hi Ines,

I absolutely love this framework and all your work! I am having a similar problem where I have built my binder branch making sure to add

pandas==0.25.3
numpy>=1.11.0,<1.16.4 
scikit-learn==0.21.2

in the requirements.txt document. I have rebuilt everything and it appears that the modules are installed when reading the binder log but I'm still getting the error No module named 'pandas' running an exercise when I run the app on localhost:8000.

Do you have any ideas or troubleshooting suggestions?

@hfboyce
Copy link
Contributor

hfboyce commented Jan 17, 2020

This was resolved by not being silly and making a binder of the proper branch 🤦🏼‍♀️
When building the binder, it's important to specify the branch binder which I failed to do. WHOOPS!

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