<?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 Re: How to install a mySQL connector for use in a JMP 18 python program in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748264#M92831</link>
    <description>&lt;P&gt;Not tried it, but I think you might start with &lt;A href="https://pypi.org/project/mysql/" target="_blank"&gt;https://pypi.org/project/mysql/&lt;/A&gt; and use JMP 18's "mypip" command. I think something I did playing the 18's python made a bat file named mypip that manipulated the virtual environment correctly.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7172"&gt;@Paul_Nelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 16:34:11 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2024-04-19T16:34:11Z</dc:date>
    <item>
      <title>How to install a mySQL connector for use in a JMP 18 python program</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748251#M92828</link>
      <description>&lt;P&gt;What are the steps to install a Connector for use in the integrated Python in JMP 18.&amp;nbsp; Specifically, I need to connect to a mySQL database.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:55:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748251#M92828</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-04-19T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to install a mySQL connector for use in a JMP 18 python program</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748264#M92831</link>
      <description>&lt;P&gt;Not tried it, but I think you might start with &lt;A href="https://pypi.org/project/mysql/" target="_blank"&gt;https://pypi.org/project/mysql/&lt;/A&gt; and use JMP 18's "mypip" command. I think something I did playing the 18's python made a bat file named mypip that manipulated the virtual environment correctly.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7172"&gt;@Paul_Nelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:34:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748264#M92831</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-04-19T16:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to install a mySQL connector for use in a JMP 18 python program</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748265#M92832</link>
      <description>&lt;P&gt;I did have to use something like this to get package install to work &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/install-python-packages-using-jsl.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/install-python-packages-using-jsl.shtml&lt;/A&gt; (Python Create JPIP CMD();) but this might have became a bit easier since then (was in some not the latest JMP18 EA version). And my issue was that my package was compiled source code (nptdms)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:38:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748265#M92832</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-19T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to install a mySQL connector for use in a JMP 18 python program</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748289#M92837</link>
      <description>&lt;P&gt;JMP 18.0 improved the package handling that was present in the Early Adopter (EA) releases. &amp;nbsp;You can install most packages from within JMP from either the JSL environment or the Python environment. &amp;nbsp;All methods are documented in the Scripting Index.&lt;/P&gt;
&lt;P&gt;In the case of packages needing compilation, there is a workaround if jpip fails build and install into the JMP environment. &amp;nbsp;In this case make sure you have the necessary development tools, Python 3.11.x from Python.org and Visual Studio or Xcode. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do a normal&lt;/P&gt;
&lt;P&gt;pip3.11 install package_name&lt;/P&gt;
&lt;P&gt;If the package itself isn't broken this should compile the package locally.&lt;/P&gt;
&lt;P&gt;Then with JMP run the jpip or Python Install Packages(); JMP will then pick up the locally built and cached version of the package and install into the JMP environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With a quick search there is a mysqlclient package which may require binary compilation, and a pure Python PyMySQL &lt;A href="https://github.com/PyMySQL/PyMySQL" target="_blank"&gt;https://github.com/PyMySQL/PyMySQL&lt;/A&gt;&amp;nbsp;package. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;From JSL&lt;/STRONG&gt; there are two commands&lt;/P&gt;
&lt;P&gt;Python Install Packages("package_name");&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python Create JPIP CMD(); &amp;nbsp; which creates a command line pip wrapper script jpip (or jpip.bat) in a location the user chooses with a directory picker dialog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: if you use the command line jpip you should also add the --user flag to the install&lt;/P&gt;
&lt;P&gt;jpip install --user some_package&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;From Python&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import jmputils&lt;/P&gt;
&lt;P&gt;jmputils.jpip('install', 'package_name')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# you can generate jpip from jmputils as well&lt;/P&gt;
&lt;P&gt;jmputils.create_jpip(destination_path)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 19:02:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748289#M92837</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-04-19T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to install a mySQL connector for use in a JMP 18 python program</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748291#M92838</link>
      <description>&lt;P&gt;Setting this up in the JMP Python environment is exactly the same as you would for standalone Python. &amp;nbsp;In JMP 18 there isn't yet any integration with the &lt;EM&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/EM&gt; JMP 18 data connectors functionality.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 19:08:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-install-a-mySQL-connector-for-use-in-a-JMP-18-python/m-p/748291#M92838</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2024-04-19T19:08:50Z</dc:date>
    </item>
  </channel>
</rss>

