-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Google Colab, numpy dependencies... #329
Comments
Hello, |
Hello @UlasTosun, Thanks for chiming in and helping!
I believe this is the appropriate course of action at this time until your other requirements (tensorflow, google-colab, et al) are no longer hindered by their own dependencies. Do you know if you are able to edit the local copy on your Google Colab version? Or do a manual install of sorts? If so, there could be a way until I can find a work around; but there are no promises.
Thank you! |
Hi @twopirllc ,
I am not sure about that I understood your question properly. However, here is my answer:
First of all, as an additional information, you can force Colab to install specific versions even for preinstalled libraries. |
I did not know this. Thanks for letting me know.
If one is using this case, then they can do some minor modifications one can do to use the latest version and not encounter these dependency issues.
If one is using this case, then it will take me longer to come up with a solution. I do not use Colab (Cloud nor local).
Do you know if Colab has issues with @gate27keeper 's dependency versions (excluding Pandas TA)?
Good to know.
Thank you! |
@twopirllc Numpy v1.19.5 is the preinstalled version on Colab for now (they may change it later). However, Pandas-TA v0.3.02b uses "sliding_window_view" which was added to Numpy in v1.20.0. So, Colab users have two options to import Pandas-TA properly:
I have tried the following libraries together on Colab and it seems that they all work together properly: I think, the second option is better, it offers latest versions of both Pandas-TA and Numpy. Just keep reinstalling newer versions of Numpy (=> 1.20.0) until Google updates preinstalled Numpy version on Colab. @twopirllc in my opinion, you should change or fix nothing on Pandas-TA. Reinstalling a newer version of Numpy solves this issue. Believe me, Google will update the preinstalled version of Numpy in a couple of months. They always keep updating preinstalled versions. For example, the preinstalled version of TensorFlow was 1.xx in a couple of months ago and now it is 2.5.0. Thank you! |
Thanks for sharing this information! It is very useful. 😎 I agree with your opinion and I am sure that the Colab package dependencies will be taken care of soon enough despite the current inconvenience. Thanks, |
Hello @UlasTosun, I have an updated version on the development branch that should address the numpy version problem. I would appreciate your feed back on this when you get a chance before I update the main branch. $ pip install -U git+https://github.com/twopirllc/pandas-ta.git@development Thanks, |
Dear @twopirllc , |
Indeed this is good news! I appreciate you taking the time to help resolve this Issue, testing also, and your patience for me to patch it. Hopefully soon a couple of others can confirm from Issue #285 that it also works for them so I can update the main branch. Thanks, |
This issue still persists on google colab, due to dependencies...
Originally posted by @gate27keeper in #324 (comment)
The text was updated successfully, but these errors were encountered: