creating an alias for python3
<p>I have python2.6.6 installed in my system. Now I am trying to use python3 while keeping all the python2.6.6 untouched in /usr/bin/. I am able to install python3 in /opt/python35/bin/. By adding <code>export PATH=/opt/python35/bin/:$PATH</code> to the ~/.bashrc file, I am able to access python3 anywhere in my console. </p>

<p>My question is: how could I set an alias (python) for python3 so that, whenever I issue command "python", python3 in /opt/python35/bin/ could be used? I simply couldn't remove python2.6.6 in my system due to some already installed programs in my system.</p>

<p>My current approach is to add a line in the ~/.bashrc file, <code>alias python = "/opt/python35/bin/python3"</code> or simply <code>alias python = "python3"</code>. However, when I reload this ~/.bashrc file, I got the following error:</p>

<pre><code>$ source ~/.bash_profile
bash: alias: python: not found
bash: alias: =: not found
bash: alias: /opt/python35/bin/python3: not found
</code></pre>

<p>Does anybody know where my problem is? Thanks in advance!</p>