<?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: Intel OneAPI python configuration in a linux box. in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1294334#M1705</link>
    <description>&lt;P&gt;The modification in the setvars.sh script you suggested seems to work, thank you.&lt;/P&gt;
&lt;P&gt;Now, the python link points to the setting done by the alternatives system, which is the version 3.9.5 distributed by the Fedora repo.&lt;/P&gt;
&lt;P&gt;The PYTHONPATH variable still contains the path&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/opt/intel/oneapi/advisor/2021.3.0/pythonapi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but this does not seem to affect the default and can be useful if I revert to the distribution contained in the OneAPI pack.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 14:28:58 GMT</pubDate>
    <dc:creator>rudi-gaelzer</dc:creator>
    <dc:date>2021-06-29T14:28:58Z</dc:date>
    <item>
      <title>Intel OneAPI python configuration in a linux box.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1290452#M1701</link>
      <description>&lt;P&gt;I'm running a Fedora Linux 34 box with OneAPI v. 2021.2.0 installed.&lt;/P&gt;
&lt;P&gt;I installed the suite (including intel python) using the Fedora dnf system in /opt/intel.&lt;/P&gt;
&lt;P&gt;After the installation, I configured the system by creating the BASH script intel_apps.sh in /etc/profile.d&lt;/P&gt;
&lt;P&gt;The script contains the line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;source /opt/intel/oneapi/setvars.sh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The problem is that this configuration method is conflicting with the other python installations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fedora 34 supports python 3 (3.9) (default) and python 2 (2.7).&amp;nbsp; In order to switch the default version, I employed the alternatives system.&amp;nbsp; As root:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;alternatives --install /usr/bin/python python /usr/bin/python3 3 &lt;BR /&gt;alternatives --install /usr/bin/python python /usr/bin/python2 1 &lt;BR /&gt;alternatives --install /usr/bin/python python&amp;nbsp; /opt/intel/oneapi/intelpython/latest/bin/python 2&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, the system default should be the gnu python 3.9.&amp;nbsp; However, whenever I open a terminal, the default reverts to:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Python 3.7.9 :: Intel Corporation&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Not only that, PYTHONPATH is also set to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;/opt/intel/oneapi/advisor/2021.2.0/pythonapi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One&amp;nbsp; workaround would be to set the default locally, by inserting in .bashrc the alias&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;alias python='/usr/bin/python3'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, PYTHONPATH remains set to the intel installation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is not a problem if I run the code inside the interpreter, but it can be a problem if I run an executable script, since some libraries I need are not included in the intel distribution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could someone point out the alternatives I have here?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 18:26:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1290452#M1701</guid>
      <dc:creator>rudi-gaelzer</dc:creator>
      <dc:date>2021-06-16T18:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Intel OneAPI python configuration in a linux box.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1293269#M1703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing detailed information. As you are using HPC toolkit, there's no need to go for the separate conda installation of python which we suggested earlier. You can modify the "&lt;EM&gt;&lt;STRONG&gt;setvars.sh&lt;/STRONG&gt;&lt;/EM&gt;" script in your existing HPC tool kit installation to resolve your issue. To make the required changes follow the below steps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. In your linux system, go to the "&lt;EM&gt;&lt;STRONG&gt;/opt/intel/oneapi/&lt;/STRONG&gt;&lt;/EM&gt;" and do "&lt;EM&gt;&lt;STRONG&gt;vi setvars.sh&lt;/STRONG&gt;&lt;/EM&gt;" to edit the setvars.sh file..&lt;/P&gt;
&lt;P&gt;2. After that move to line number "614" using the command "&lt;EM&gt;&lt;STRONG&gt;:614&lt;/STRONG&gt;&lt;/EM&gt;". Move to next line (after line 614) and enter the following lines of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;elif [[ ${arg_path} = *"intelpython"* ]]; then&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;3. After doing the desired changes, press "&lt;EM&gt;&lt;STRONG&gt;esc&lt;/STRONG&gt;&lt;/EM&gt;" and save your changes using command "&lt;EM&gt;&lt;STRONG&gt;:wq&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;I have also attached a screenshot which shows the line where you need to add the code snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another workaround is that you can list and download (using dnf) only the necessary standalone packages which you need. You can follow these below links for doing the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/list-available-toolkits-components-and-runtime-library-packages.html#list-available-toolkits-components-and-runtime-library-packages_TOOLKIT" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/list-available-toolkits-components-and-runtime-library-packages.html#list-available-toolkits-components-and-runtime-library-packages_TOOLKIT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/yum-dnf-zypper.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/yum-dnf-zypper.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (194).png" style="width: 898px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/17791iA16ABCCB2BF86374/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (194).png" alt="Screenshot (194).png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 12:53:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1293269#M1703</guid>
      <dc:creator>RahulU_Intel</dc:creator>
      <dc:date>2021-06-25T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Intel OneAPI python configuration in a linux box.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1294334#M1705</link>
      <description>&lt;P&gt;The modification in the setvars.sh script you suggested seems to work, thank you.&lt;/P&gt;
&lt;P&gt;Now, the python link points to the setting done by the alternatives system, which is the version 3.9.5 distributed by the Fedora repo.&lt;/P&gt;
&lt;P&gt;The PYTHONPATH variable still contains the path&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/opt/intel/oneapi/advisor/2021.3.0/pythonapi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but this does not seem to affect the default and can be useful if I revert to the distribution contained in the OneAPI pack.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 14:28:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1294334#M1705</guid>
      <dc:creator>rudi-gaelzer</dc:creator>
      <dc:date>2021-06-29T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re:Intel OneAPI python configuration in a linux box.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1294575#M1706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Thanks for accepting our solution. If you need any additional information, please submit a new question as this thread will no longer be monitored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2021 05:30:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Intel-OneAPI-python-configuration-in-a-linux-box/m-p/1294575#M1706</guid>
      <dc:creator>RahulU_Intel</dc:creator>
      <dc:date>2021-06-30T05:30:41Z</dc:date>
    </item>
  </channel>
</rss>

