Rhino Inside Python 2.7 Install Problems

Hi i’m having trouble installing the rhinoinside module with pip in Python 2.7 (and also in 3.6). The install fails with the below error code. Its seams to fail with an install option –single-version-externally-managed not recognized. Any ideas what might be going wrong? Python 3.6 gives me a similar error.

I have:

  • Python 2.7.16
  • Updated pip
  • Rhino 7 WIP 7.0.1290

==============================================================

C:\WINDOWS\system32>python -m pip install --user rhinoinside
Collecting rhinoinside
Using cached https://files.pythonhosted.org/packages/94/89/087ce455887f72dd56181cdff7659f2577e4303e1a3b61cb3b772590307b/rhinoinside-0.2.0.tar.gz
Requirement already satisfied: pythonnet in c:\python27\lib\site-packages (from rhinoinside) (2.3.0)
Installing collected packages: rhinoinside
Running setup.py install for rhinoinside … error
ERROR: Complete output from command ‘C:\Python27\python.exe’ -u -c ‘import setuptools, tokenize;file=’“'”‘c:\users\etienne\appdata\local\temp\pip-install-k9k3d_\rhinoinside\setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record ‘c:\users\etienne\appdata\local\temp\pip-record-cdcc5m\install-record.txt’ --single-version-externally-managed --compile --user --prefix=:
ERROR: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help

error: option --single-version-externally-managed not recognized
----------------------------------------

ERROR: Command “‘C:\Python27\python.exe’ -u -c ‘import setuptools, tokenize;file=’”‘“‘c:\users\etienne\appdata\local\temp\pip-install-k9k3d_\rhinoinside\setup.py’”’“';f=getattr(tokenize, '”‘“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ install --record ‘c:\users\etienne\appdata\local\temp\pip-record-cdcc5m\install-record.txt’ --single-version-externally-managed --compile --user --prefix=” failed with error code 1 in c:\users\etienne\appdata\local\temp\pip-install-k9k3d_\rhinoinside'

As a workaround a manual install of the CPython repository downloaded from github does seem to work. just copy the CPython folder to your desktop and run setup.py:

python setup.py install

So the problems seams to be with the pip installer.

1 Like