<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue installing sklearn python package with jpip in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/779327#M96049</link>
    <description>&lt;P&gt;I followed the instructions to install sklearn as in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/install-compiled-python-packages-using-the-command-line-and-jpip.shtml#" target="_blank" rel="noopener"&gt;Install Compiled Python Packages using the Command Line and jpip (jmp.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got&lt;/P&gt;&lt;PRE&gt;Collecting sklearn
  Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done&lt;/PRE&gt;&lt;P&gt;but then I got a very long error message in red that at the starts with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and eventually ends with&lt;/P&gt;&lt;PRE&gt;File "email\message.py", line 15, in &amp;lt;module&amp;gt;
from email import utils
File "email\utils.py", line 29, in &amp;lt;module&amp;gt;
import socket
File "C:\Program Files\JMP\JMP\18\python311.zip\socket.py", line 51, in &amp;lt;module&amp;gt;
import _socket
ModuleNotFoundError: No module named '_socket'&lt;/PRE&gt;&lt;P&gt;I can run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import _socket&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been fine installing matplotlib, numpy, pandas and a few other python packages (although I installed them as in &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/install-python-packages-in-jmps-python-environment.shtml#" target="_blank" rel="noopener"&gt;Install Python Packages in JMP’s Python Environment&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether this could be an issue with the jmp python conflicting with python that I installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate it if anyone could help me out with this issue.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 14:04:47 GMT</pubDate>
    <dc:creator>Isaac2</dc:creator>
    <dc:date>2024-08-05T14:04:47Z</dc:date>
    <item>
      <title>Issue installing sklearn python package with jpip</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/779327#M96049</link>
      <description>&lt;P&gt;I followed the instructions to install sklearn as in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/install-compiled-python-packages-using-the-command-line-and-jpip.shtml#" target="_blank" rel="noopener"&gt;Install Compiled Python Packages using the Command Line and jpip (jmp.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got&lt;/P&gt;&lt;PRE&gt;Collecting sklearn
  Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done&lt;/PRE&gt;&lt;P&gt;but then I got a very long error message in red that at the starts with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and eventually ends with&lt;/P&gt;&lt;PRE&gt;File "email\message.py", line 15, in &amp;lt;module&amp;gt;
from email import utils
File "email\utils.py", line 29, in &amp;lt;module&amp;gt;
import socket
File "C:\Program Files\JMP\JMP\18\python311.zip\socket.py", line 51, in &amp;lt;module&amp;gt;
import _socket
ModuleNotFoundError: No module named '_socket'&lt;/PRE&gt;&lt;P&gt;I can run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import _socket&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been fine installing matplotlib, numpy, pandas and a few other python packages (although I installed them as in &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/install-python-packages-in-jmps-python-environment.shtml#" target="_blank" rel="noopener"&gt;Install Python Packages in JMP’s Python Environment&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether this could be an issue with the jmp python conflicting with python that I installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate it if anyone could help me out with this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:04:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/779327#M96049</guid>
      <dc:creator>Isaac2</dc:creator>
      <dc:date>2024-08-05T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue installing sklearn python package with jpip</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/779337#M96050</link>
      <description>&lt;P&gt;This might give some idea what you can do &lt;A href="https://community.jmp.com/t5/Discussions/Is-there-a-list-of-python-library-names-in-JMP18-0-0/m-p/775772/highlight/true#M95807" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Is-there-a-list-of-python-library-names-in-JMP18-0-0/m-p/775772/highlight/true#M95807&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:17:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/779337#M96050</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-05T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue installing sklearn python package with jpip</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/781306#M96388</link>
      <description>&lt;P&gt;As described in the referenced post, I'll repeat it her for easy access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The _socket error is Windows specific and due to a wrong assumption I made regarding the layout of the files installed. &amp;nbsp;It is Windows specific and is fixed in 18.1. &amp;nbsp;While the embedded Python environment finds the _socket.pyd file just fine where it is located, the setuptools process assumes that the .pyd files&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;will&lt;/EM&gt;&amp;nbsp;&lt;/STRONG&gt;be found within a DLLs/ directory. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 18.1,&amp;nbsp;&lt;SPAN&gt; I have created a DLLs subdirectoy, and moved the .pyd files and 4 Python specific DLLs from the JMP.exe directory to the DLLs/ directory. &amp;nbsp;Those 4 dlls being&amp;nbsp;libcrypto-3.dll, libffi-8.dll, libssl-3.dll and sqlite3.dll.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workaround to try for 18.0, 18.0.1 is to shutdown JMP, create the DLLs/ subdirectory in the directory that contains JMP.exe, then move the .pyd files and the 4 aforementioned dlls into the DLLs subdirectory. &amp;nbsp;( and of course restart JMP afterwards ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming JMP is installed in c:\Program Files\JMP\JMP\18&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exit JMP&lt;/P&gt;
&lt;P&gt;make the directory c:\Program Files\JMP\JMP\18\DLLs&lt;/P&gt;
&lt;P&gt;Move *.pyd to&amp;nbsp;c:\Program Files\JMP\JMP\18\DLLs&lt;/P&gt;
&lt;P&gt;Move&amp;nbsp;&lt;SPAN&gt;libcrypto-3.dll, libffi-9.dll, libssl-3.dll and sqlite3.dll to&amp;nbsp;c:\Program Files\JMP\JMP\18\DLLs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Restart JMP&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should fix the issue. &amp;nbsp;And JMP Python Integration finds the pyd files just fine located within the DLLs directory.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 13:40:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/781306#M96388</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-08-13T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue installing sklearn python package with jpip</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/797723#M97357</link>
      <description>&lt;P&gt;Thank you, I will try it.&lt;/P&gt;&lt;LI-SPOILER&gt;It seems like there might be a conflict between JMP's Python environment and a standard Python setup. Ensure you’re using the correct environment, update pip, and consider using a virtual environment to avoid conflicts. Writing my personal statement was stressing me out, so I used &lt;A href="https://academized.com/buy-personal-statement-online" target="_self"&gt;academized.com/buy-personal-statement-online&lt;/A&gt; for help. The writer was professional, and the personal statement was written exactly how I needed it. If you’re struggling with writing a personal statement like I was, this service can help you get it done on time. The quality of work is excellent, and I’m really happy with the final product. It made everything so much easier.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 20 Sep 2024 11:44:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-installing-sklearn-python-package-with-jpip/m-p/797723#M97357</guid>
      <dc:creator>JasmineWalker</dc:creator>
      <dc:date>2024-09-20T11:44:28Z</dc:date>
    </item>
  </channel>
</rss>

