NxRLab / ModernRobotics

Modern Robotics: Mechanics, Planning, and Control Code Library --- The primary purpose of the provided software is to be easy to read and educational, reinforcing the concepts in the book. The code is optimized neither for efficiency nor robustness.
http://modernrobotics.org/
MIT License
1.9k stars 807 forks source link

Installing with pip #26

Closed swiz23 closed 4 years ago

swiz23 commented 5 years ago

If trying to install the package using 'pip install modern_robotics', I get the following error message...

Collecting modern_robotics Using cached https://files.pythonhosted.org/packages/a0/78/18a10bb636b0f1ae101efdb8dfe65f5dce231e00de95ae1a14af32c49249/modern_robotics-1.1.0.tar.gz Collecting numpy (from modern_robotics) Using cached https://files.pythonhosted.org/packages/da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da/numpy-1.17.0.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-pOIoLs/numpy/setup.py", line 31, in raise RuntimeError("Python version >= 3.5 required.") RuntimeError: Python version >= 3.5 required.

It seems that numpy is no longer supported on python 2.7 according to https://docs.scipy.org/doc/numpy/release.html. To fix this, I did pip3 install modern_robotics which worked. Unless I'm missing something, the readme should be changed to reflect that pip3 should be used instead of pip.

HuanWeng commented 4 years ago

Hi Solomon, I'm not quite sure about the reason you got this issue. According to PyPI tutorials, pip should work as long as its version is correct. It seems to me that you didn't update your pip version.

swiz23 commented 4 years ago

Hi Huan,

I updated my pip version and was able to successfully install modern_robotics as you said!