meshcat-dev / meshcat-python

WebGL-based 3D visualizer for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility with python 2.7

IoannisDadiotis opened this issue · comments

Hi all,

I would like to ask if meshcat can be installed with python 2.7?

I tried pip install meshcat (python vesion 2.7), and I got:

Collecting meshcat
  Using cached https://files.pythonhosted.org/packages/fb/38/3fcd7ba56bac4f755f00fc2dd265916d34ac4888f1c06c0a66d9f9a7d162/meshcat-0.3.1.tar.gz
Collecting ipython>=5 (from meshcat)
  Using cached https://files.pythonhosted.org/packages/ce/2c/2849a2b37024a01a847c87d81825c0489eb22ffc6416cac009bf281ea838/ipython-5.10.0-py2-none-any.whl
Collecting numpy>=1.14.0 (from meshcat)
  Using cached https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pillow>=7.0.0 (from meshcat)
  Could not find a version that satisfies the requirement pillow>=7.0.0 (from meshcat) (from versions: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.8.0, 2.8.1, 2.8.2, 2.9.0, 3.0.0, 3.1.0rc1, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.4.0, 3.4.1, 3.4.2, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.2.2)
No matching distribution found for pillow>=7.0.0 (from meshcat)

Thanks

I also had issues with this as I need to use Python 2.7 for a legacy codebase and meshcat was a dependency. I resolved it by specifying a version when doing a pip install (an old enough version wasn't available for a conda forge installation however). I picked an older one from here: https://pypi.org/project/meshcat/#history

Looks like pip install meshcat==0.1.0 worked for me

Indeed this works also for me.

Thanks!