-
Notifications
You must be signed in to change notification settings - Fork 30
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 on Google Colab #52
Comments
Hi @hmok ! I am the main coder of ezc3d and co-coder with @romainmartinez on pyomeca. I was interested on why you struggled to install ezc3d? If anything can be done in order to help installing it, please let me know! The easiest way is to open an issue on github in ezc3d :) For your specific problem, I tried installing everything in google colab and all seems fine. Here the command I used: !wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y --prefix /usr/local -c pyomeca -c conda-forge pyomeca
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/') Please note that if python version changes in miniconda, you will need to change the python version in the Afterwards, import ezc3d
import pyomeca Here is the Google Colab example I've made: Enjoy! |
Hi @pariterre , Thank you for the nice note above and great work by the way! Keep up please! I am wondering if you could install OpenSim on Google Colab as well. I have tried it but haven't had success yet. I will explore your pyomeca more! Thanks again. |
Hi there! You can download it via conda again, but so far I am not sure there is an official channel. So you will have to choose. As up today, it seems the 2 most up-to-date is ours (pyomeca) and kzts, the latter slightly more recent. Assuming you are using the kzts channel, just run the following command to install opensim: !conda install -y --prefix /usr/local -c kzts opensim Afterward, you should be able to access opensim resources via the Regards |
Hello again! That is great. I have been trying many ways but this is so easy and I did it. Thanks a lot here is what I did: !wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh import sys import opensim as osim The it works. Wow. May I please ask you what you meant by two ways of installing it. Can we install OpenSim via pyomeca as well? Thanks a lot and have a wonderful day! |
Yep, we also host our build of Opensim. You can install it from our channel using this command !conda install -y --prefix /usr/local -c pyomeca opensim I am not sure which one is most up-to-date though. This is not impossible that the one on our channel includes some changes I've made into OpenSim but were not merged yet into the main repo (mainly on StaticOptimization). @romainmartinez can you confirm? Regards! |
Hi there, As far as I know, |
That is great! Thanks for the list and details. I just tried to install all three options. I could only install properly kzts. I will go ahead with kzts one for now but I will try them later again! |
Yep, I confirm the bug, the one on pyomeca fails due an error with simbody interface. @romainmartinez, should I have a look? |
Since this problem is not related to pyomeca, I'll close this issue. Feel free to reach us on the pyosim repo if you still have trouble installing pyosim. |
Hello Romain,
I have been trying to install them and use them to get some simulation with OpenSim. I am not sure if I installed them properly esp. in a google notebook.
I managed to install ezc3d with some difficulty on Google Colab. (I guess the same idea can be done on Jupyter notebook); However, after trying your pyomeca, I get the following error (see the notebook please) :
_Could not find a version that satisfies the requirement ezc3d (from pyomeca==2018.3+2.g3584e40) (from versions: )
No matching distribution found for ezc3d (from pyomeca==2018.3+2.g3584e40)_
I am wonder if you could help me fix this and install it. I do appreciate it.
Cheers,
Hossein
The text was updated successfully, but these errors were encountered: