<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Imran</title>
    <description>The latest articles on DEV Community by Imran (@mkhan195).</description>
    <link>https://dev.to/mkhan195</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F470830%2Fbd898a83-4d88-4a85-bf6e-795cfa151380.png</url>
      <title>DEV Community: Imran</title>
      <link>https://dev.to/mkhan195</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mkhan195"/>
    <language>en</language>
    <item>
      <title>Python Lib path in RHEL 7</title>
      <dc:creator>Imran</dc:creator>
      <pubDate>Tue, 22 Sep 2020 07:46:00 +0000</pubDate>
      <link>https://dev.to/mkhan195/python-lib-path-in-rhel-7-2hd4</link>
      <guid>https://dev.to/mkhan195/python-lib-path-in-rhel-7-2hd4</guid>
      <description>&lt;p&gt;I have a Virtual machine with RHEL 7. Where Python2.7 is installed (by default) comes with it. I have installed Python 3.6 installed separately like below.&lt;/p&gt;

&lt;p&gt;wget &lt;a href="https://www.python.org/ftp/python/2.7.6/Python-3.6.XX.tgz"&gt;https://www.python.org/ftp/python/2.7.6/Python-3.6.XX.tgz&lt;/a&gt; --no-check-certificate&lt;br&gt;
tar -zvf Python-3.6.tgz&lt;br&gt;
rm -rf Python-3.6.tgz&lt;br&gt;
cd Python-3.6&lt;br&gt;
./configure --prefix=/opt/python3.6 --enable-shared&lt;br&gt;
make&lt;br&gt;
make altinstall&lt;/p&gt;

&lt;p&gt;Just ignore the path and all.&lt;/p&gt;

&lt;p&gt;Now when I am installing the django framework I am getting below error.&lt;br&gt;
Exception:&lt;br&gt;
Traceback (most recent call last):&lt;br&gt;
  File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main&lt;br&gt;
    status = self.run(options, args)&lt;br&gt;
  File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 365, in run&lt;br&gt;
    strip_file_prefix=options.strip_file_prefix,&lt;br&gt;
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 789, in install&lt;br&gt;
    **kwargs&lt;br&gt;
  File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 854, in install&lt;/p&gt;

&lt;p&gt;Its looking for Python site_packages in /usr/lib/python3.6 whereas it should look in /opt/python3.6/lib/python3.6/site_packages , any idea who to change that ?&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
