<?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 problem with Python package installation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867574#M103039</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using JMP Pro 18.0.0; on my laptop, I can correctly open a Python script window, and update / install packages with :&lt;BR /&gt;import jmputils&amp;nbsp;&lt;BR /&gt;jmputils.jpip('list')&amp;nbsp; &amp;nbsp;&lt;BR /&gt;jmputils.jpip('install --upgrade', 'pip setuptools')&amp;nbsp; &amp;nbsp;&lt;BR /&gt;jmputils.jpip('install', 'pandas')&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But, when I tried the same on a different desktop computer, I get this error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/&lt;/P&gt;
&lt;P&gt;This computer has internet connection.&lt;BR /&gt;I did some Google search, and it seems that it is a network and/or proxy issue.&lt;BR /&gt;Both computers are running WIndows 10 Enterprise.&lt;BR /&gt;Any advice or idea ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 20:26:12 GMT</pubDate>
    <dc:creator>BrianzaFelix</dc:creator>
    <dc:date>2025-04-10T20:26:12Z</dc:date>
    <item>
      <title>problem with Python package installation</title>
      <link>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867574#M103039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using JMP Pro 18.0.0; on my laptop, I can correctly open a Python script window, and update / install packages with :&lt;BR /&gt;import jmputils&amp;nbsp;&lt;BR /&gt;jmputils.jpip('list')&amp;nbsp; &amp;nbsp;&lt;BR /&gt;jmputils.jpip('install --upgrade', 'pip setuptools')&amp;nbsp; &amp;nbsp;&lt;BR /&gt;jmputils.jpip('install', 'pandas')&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But, when I tried the same on a different desktop computer, I get this error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/&lt;/P&gt;
&lt;P&gt;This computer has internet connection.&lt;BR /&gt;I did some Google search, and it seems that it is a network and/or proxy issue.&lt;BR /&gt;Both computers are running WIndows 10 Enterprise.&lt;BR /&gt;Any advice or idea ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:26:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867574#M103039</guid>
      <dc:creator>BrianzaFelix</dc:creator>
      <dc:date>2025-04-10T20:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Python package installation</title>
      <link>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867877#M103061</link>
      <description>&lt;P&gt;JMP's jpip is just a wrapper on top of pip. &amp;nbsp;Do you / can you Install standalone Python.org Python3.11.x on your machine and try the same commands in pip. &amp;nbsp;If you succeed on both machines then there likely some environment variable related to the proxy. &amp;nbsp;But if pip doesn't work on the machine, you will need to get your network IT involved. &amp;nbsp;If pip can't connect, neither can JMP since it is just calling pip with the appropriate environment variables to ensure the packages wind up in JMP's site-packages/ directory. &amp;nbsp;JMP does pass environment variables through to the subprocess call to launch pip, so such variables 'should' already be passed through. &amp;nbsp;If you find you do need to pass specific variables through, you may need to modify the jmputils.py to add them into the subprocess call. &amp;nbsp;A copy of jmputils.py can be found in $SAMPLE_SCRIPTS/Python directory.&lt;/P&gt;
&lt;P&gt;The file actually used is your python311.zip file which would have to be unpacked from the zip, edited and put back into the zip file for jmp to see it. &amp;nbsp;You could also rename the sample scripts one with your edits&amp;nbsp;&lt;EM&gt;myJMPutils.py&lt;/EM&gt; copy it to your site-packages, and do an something like&lt;/P&gt;
&lt;P&gt;from myJMPutils import jpip&lt;/P&gt;
&lt;P&gt;jpip('install','pandas')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 18:06:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867877#M103061</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2025-04-11T18:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Python package installation</title>
      <link>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867884#M103065</link>
      <description>&lt;P&gt;I would update to the latest JMP 18 maintenance release if possible as well. &amp;nbsp;You will gain security and bug fixes since the initial release. &amp;nbsp;There are some package installation improvements as well. &amp;nbsp;( I believe the package install improvements went into 18.1.0 )&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 19:19:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/867884#M103065</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2025-04-11T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Python package installation</title>
      <link>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/868047#M103095</link>
      <description>&lt;P&gt;Thanks Paul_Nelson !&lt;BR /&gt;I was able to solve my problem with the help of our IT department.&lt;BR /&gt;Long story short, I copied the folder C:\Users\MyUserName\pip from my laptop (where jpip worked correctly) to the other computer that had the error, where that folder was missing.&lt;BR /&gt;The folder contains 2 files, one is pip.ini and the other should be a certificate (file extension is .pem).&lt;/P&gt;
&lt;P&gt;About updating to latest JMP 18 release, I'll do that as soon as our IT makes it available for us.&lt;BR /&gt;Thanks again for your reply ! It contains useful information for me !&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 16:20:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/problem-with-Python-package-installation/m-p/868047#M103095</guid>
      <dc:creator>BrianzaFelix</dc:creator>
      <dc:date>2025-04-13T16:20:11Z</dc:date>
    </item>
  </channel>
</rss>

