I have installed Anaconda on Ubuntu 14.04. Anaconda installed Python3.6. I already had Python2.7 (Ubuntu default) and then Python3.4(I installed before Anaconda).
Although Anaconda have made importing packages much easier, I am not able to save codes in '.py' file. Anaconda has ipython (which looks like idle shell), jupyter (save in '.ipynb') but none offer to save it as scripts with '.py' extension. I want '.py' scripts which IDLE offered.
When I type in terminal
anand@anand-dell:~$ python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
but when i click Idle it defaults to
Python 3.4.3 (default, Nov 28 2017, 16:41:13)
[GCC 4.8.4] on linux
Type "copyright", "credits" or "license()" for more information.
How can i install python3.6 IDLE?
Download
idlelib
from cpython repo: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/python/cpython/tree/3.6/Lib/idlelibExtract
idlelib
tosite-packages
of anaconda.Create
/usr/local/bin/idle
with following content. (Remember to modify the first line to correct path of Anaconda python)You need to activate conda environment first If you haven't created any environment try below command
After this you will be able to launch idle in anaconda using command
and to deactivate environment use
or