cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
Isaac2
Level I

Issue installing sklearn python package with jpip

I followed the instructions to install sklearn as in 

Install Compiled Python Packages using the Command Line and jpip (jmp.com)

I got

Collecting sklearn
  Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done

but then I got a very long error message in red that at the starts with:

 

ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\isaac\AppData\Roaming\JMP\JMP\Python\Python311\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()

 

and eventually ends with

File "email\message.py", line 15, in <module>
from email import utils
File "email\utils.py", line 29, in <module>
import socket
File "C:\Program Files\JMP\JMP\18\python311.zip\socket.py", line 51, in <module>
import _socket
ModuleNotFoundError: No module named '_socket'

I can run

 

import _socket

 

from the jmp python editor and I don't get an error message, and I have found that the _socket.pyd file is in "C:\Program Files\JMP\JMP\18" folder which should be picked up by the python compiler (I checked the jpip bash file and the PYTHONHOME, PYTHONPATH variables both have "C:\Program Files\JMP\JMP\18"). I had the exact same issue trying to install the mordred package.

 

I have been fine installing matplotlib, numpy, pandas and a few other python packages (although I installed them as in Install Python Packages in JMP’s Python Environment).

 

I am not sure whether this could be an issue with the jmp python conflicting with python that I installed. 

 

I would appreciate it if anyone could help me out with this issue.

1 REPLY 1
jthi
Super User

Re: Issue installing sklearn python package with jpip