如何安装Python 3.6 IDLE以与Anaconda一起使用?

a2warik

我已经在Ubuntu 14.04上安装了Anaconda。Anaconda安装了Python3.6。我已经安装了Python2.7(默认为Ubuntu),然后安装了Python3.4(在Anaconda之前安装)。

尽管Anaconda使导入软件包更加容易,但我无法将代码保存在“ .py”文件中。Anaconda具有ipython(看起来像是空闲的外壳),jupyter(保存在“ .ipynb”中),但没有提供将其另存为扩展名为“ .py”的脚本的功能。我想要IDLE提供的“ .py”脚本。

当我输入终端

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.

但是当我单击“空闲”时,默认为

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.

我如何安装python3.6 IDLE?

平竹雄
  1. idlelib从cpython仓库下载https ://minhaskamal.github.io/DownGit/#/home ? url =https : //github.com/python/cpython/tree/3.6/Lib/idlelib

  2. 提取idlelib到水site-packages蟒。

  3. /usr/local/bin/idle使用以下内容创建(请记住修改第一行以更正Anaconda python的路径)

    #!/usr/local/lib/python3.6.2/bin/python3.6
    
    from idlelib.pyshell import main
    if __name__ == '__main__':
        main()
    

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

可以将Anaconda Python 3环境与Pycharm一起使用吗?

如何将 Httparty 与 rails 6 一起使用

在Windows 10上安装Graphviz以与Python 3一起使用

如何使用Python 3安装pip?

如何与vao一起使用glVertexAttrib3f?

如何使媒体密钥与i3一起使用?

Graphviz如何与Anaconda / Spyder一起使用?

Anaconda是否可以与Python 3.7一起使用?

将Python Z3与QWORD一起使用

如何在Windows 10上安装snappy C库以与Anaconda中的python-snappy一起使用?

如果与apt-get install getid3一起安装,如何使用getid3?

如何在Anaconda上安装Selenium?如何在Anaconda的Spyder IDE上与Scrapy一起使用Selenium?

如何安装和调用IDLE for Python3?

如何为Anaconda python3安装gi模块?

python3是否总是随Python 3一起安装?

如何使用CommonJS模块将Webpack和ES6与依赖项一起使用?

如何将Selenium与别名Python 3一起使用

如何在ReadTheDocs中将matplotlib的plot-directive与python-3一起使用?

如何在Python 3中将CSV编写器与GZIP文件一起使用?

如何交叉编译安装了mariadb10的RPI3(Stretch)以与QTCreator一起使用?

如何使用 pip 为 python3 安装 python 包?

如何在Angular 6中将“ routerLinkActive”与查询参数一起使用?

如何将RxJs 6与TypeScript和WebPack一起使用

第三方库如何与ES6模块一起使用?

如何存根/模拟JDBC ResultSet以便与Java 5和6一起使用?

如何在Angular 6中将ngSwitch与* ngFor一起使用

angular-cli如何与ES6模块一起使用?

如何将ES6导入和'request'npm模块一起使用

如何在 Angular 6 中实现与 forkJoin 一起使用的通用错误处理?