Unit3: Lagrange equation

Hello!
Help please in solving this problem. In


Unit3 lagrange.py file on running gives the error attached
Although i tried to install it using command
pip install pydy-code-gen
kindly suggest solution of this problem.
Thanks

Hello @misbahsuhail123 ,

what is the output that you get when you run this command?:

pip install pydy-code-gen

Could you please paste the output that you get?
You should get something similar to this:


DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting pydy-code-gen
  Downloading pydy-code-gen-0.1.0.tar.gz (17 kB)
Requirement already satisfied: sympy>=0.7.3 in /home/user/.local/lib/python2.7/site-packages (from pydy-code-gen) (1.5.1)
Requirement already satisfied: numpy>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from pydy-code-gen) (1.16.6)
Requirement already satisfied: mpmath>=0.19 in /home/user/.local/lib/python2.7/site-packages (from sympy>=0.7.3->pydy-code-gen) (1.2.1)
Building wheels for collected packages: pydy-code-gen
  Building wheel for pydy-code-gen (setup.py) ... done
  Created wheel for pydy-code-gen: filename=pydy_code_gen-0.1.0-py2-none-any.whl size=19153 sha256=7eeba0d781b8ef8dc49155732b75104651d7ca5945360a8557992204ffe87a64
  Stored in directory: /home/user/.cache/pip/wheels/46/e9/aa/be33ddcb3b1e0aa77696b0c310a0b6dd365532dfd0724eb51e
Successfully built pydy-code-gen
Installing collected packages: pydy-code-gen
Successfully installed pydy-code-gen-0.1.0
WARNING: You are using pip version 20.2.2; however, version 20.3.4 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.

Roberto

Hello!
No need to use this command
pip install pydy-code-gen
It has updated now in the unit. Thanks for your help.

1 Like

This topic was automatically closed after 21 hours. New replies are no longer allowed.