jgerstmayr / EXUDYN

Multibody Dynamics Simulation: Rigid and flexible multibody systems
https://www.youtube.com/channel/UCsQD2bIPBXB_4J23WtqKkVw/playlists
Other
166 stars 23 forks source link

Unable to install the package #25

Closed dummifiedme closed 2 years ago

dummifiedme commented 2 years ago

After #24 , I tried to install using the setup.py, but it threw an error relating to permissions. (Should I run it with sudo?). Then I tried to change install directory using install-base flag, but it failed quoting "install is deprecated, use build or pip instead".

I then tried to download a linux wheel and manually copied the unpacked files to python site packages. While trying to import exudyn, it threw error "no module named exudynCPP".

Can you please suggest a way to install the package, I really wish to start working with it! :)

jgerstmayr commented 2 years ago

This very much depends on your Python installation. On ubuntu 18 and 20, default Python requires to run as "sudo python3 setup.py install". BUT you can switch to a installation for user only: "python3 setup.py install --user"

I recommend to use virtual environments in Python. If they are in your user directory, also setup.py will not need su rights. You can also install different Python versions for the environments, allowing you to be compatible with Exudyn wheels (e.g. Python 3.8)

Copying the wheel for a wrong Python version can not work. At least, there must be the same Python version and 32/64 bits.

Please let me know, if you could resolve this problem. Please also follow the detailed explanations in theDoc.pdf !

dummifiedme commented 2 years ago

Thanks for the all the help.