<?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 PYTHONPATH being unset in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/PYTHONPATH-being-unset/m-p/1067626#M147</link>
    <description>&lt;P&gt;Hi There!&lt;/P&gt;

&lt;P&gt;Installation process for this Beta release is simple and clean, contrary to the pain that used to be t&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;he manual Numpy and Scipy recompilation using Intel's MKL libs,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;thanks for this! &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Now I am trying to test Intel Python Beta release in my own python stuff, &amp;nbsp;which I usually include in the&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;STRONG&gt;&amp;nbsp;PYTHONPATH .&lt;/STRONG&gt;&amp;nbsp;However this env var &lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;is unset &amp;nbsp;when the `&lt;STRONG&gt;pythonvars.sh&lt;/STRONG&gt;`&amp;nbsp;is sourced:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;if [ ! -z ${PYTHONPATH+x} ]; then
    echo "PYTHONPATH being unset. Old value: ${PYTHONPATH}"
    unset PYTHONPATH 
fi

if [ -z ${PATH+x} ]; then
    PATH="/opt/intel/intelpython27/bin"; export PATH
else
    PATH="/opt/intel/intelpython27/bin:${PATH}"; export PATH
fi
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So, apparently python preinstalled packages are now included in PATH and not in PYTHONPATH, then, how can I include my python experimental packages?&lt;/P&gt;

&lt;P&gt;Is there a clean way to re-set the PYTHONPATH such that the intel-python look on this dirs (and, in this way avoid all necessary changes in my .zshrc/.bashrc) ? &amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Efrain&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 06:48:12 GMT</pubDate>
    <dc:creator>Torres__Efrain</dc:creator>
    <dc:date>2016-03-31T06:48:12Z</dc:date>
    <item>
      <title>PYTHONPATH being unset</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/PYTHONPATH-being-unset/m-p/1067626#M147</link>
      <description>&lt;P&gt;Hi There!&lt;/P&gt;

&lt;P&gt;Installation process for this Beta release is simple and clean, contrary to the pain that used to be t&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;he manual Numpy and Scipy recompilation using Intel's MKL libs,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;thanks for this! &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Now I am trying to test Intel Python Beta release in my own python stuff, &amp;nbsp;which I usually include in the&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;STRONG&gt;&amp;nbsp;PYTHONPATH .&lt;/STRONG&gt;&amp;nbsp;However this env var &lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;is unset &amp;nbsp;when the `&lt;STRONG&gt;pythonvars.sh&lt;/STRONG&gt;`&amp;nbsp;is sourced:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;if [ ! -z ${PYTHONPATH+x} ]; then
    echo "PYTHONPATH being unset. Old value: ${PYTHONPATH}"
    unset PYTHONPATH 
fi

if [ -z ${PATH+x} ]; then
    PATH="/opt/intel/intelpython27/bin"; export PATH
else
    PATH="/opt/intel/intelpython27/bin:${PATH}"; export PATH
fi
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So, apparently python preinstalled packages are now included in PATH and not in PYTHONPATH, then, how can I include my python experimental packages?&lt;/P&gt;

&lt;P&gt;Is there a clean way to re-set the PYTHONPATH such that the intel-python look on this dirs (and, in this way avoid all necessary changes in my .zshrc/.bashrc) ? &amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Efrain&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 06:48:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/PYTHONPATH-being-unset/m-p/1067626#M147</guid>
      <dc:creator>Torres__Efrain</dc:creator>
      <dc:date>2016-03-31T06:48:12Z</dc:date>
    </item>
    <item>
      <title>Hello Efrain. Thank you for</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/PYTHONPATH-being-unset/m-p/1067627#M148</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;Efrain. Thank you for trying our Beta!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The recommendation when working with conda environments is to keep PYTHONHOME and PYTHONPATH empty, using the "activate" and "deactivate" scripts to switch environments by modifying only the PATH.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Perhaps the cleanest way to include your test packages with our distribution is to create an environment using conda env and install your modules into that environment (using any installation means you require).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;If you wish to use PYTHONPATH to include additional modules, You should be fine to set PYTHONHOME to the Intel(R) Distribution for Python installation root, PYTHONPATH to any additional library paths, and prepend the "bin" directory to the PATH.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;You can copy/modify pythonvars.sh to create your own environment setup script that works to your liking.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Best,&lt;BR /&gt;
	Todd&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 15:11:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/PYTHONPATH-being-unset/m-p/1067627#M148</guid>
      <dc:creator>Todd_T_Intel</dc:creator>
      <dc:date>2016-03-31T15:11:34Z</dc:date>
    </item>
  </channel>
</rss>

