Anaconda - 集成科学计算的 Python 发行版

Life is short, you need Python - Bruce Eckel
Package Index, Python 3.5.3 documentation
回复
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

Anaconda - 集成科学计算的 Python 发行版

帖子 523066680 »

Anaconda 是 Python 的一个科学计算发行版,内置了数百个 Python 经常会使用的库。blah blah ...

官方下载页面:https://www.continuum.io/downloads

历史版本下载:https://repo.continuum.io/archive/

Archive镜像[清华大学]:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

Conda 镜像源修改方法:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

推荐 Anaconda3-4.1.1 ,恰好对应 python3.5.2 版本,主要是 Anaconda3-4.3 的 spyder 运行崩溃,V4.1 正常

补充,2017-04,将 Anaconda 升级到 4.3.1,Spyder 自动升级为 3.0,使用正常
$ conda update --prefix C:\Anaconda3 anaconda
Windows 安装后 .py 文件并没有关联,手动设置参考 三楼:Anaconda - .py 文件关联
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

安装以及激活不同版本的 Python 环境

帖子 523066680 »

参考:
http://www.jb51.net/article/51651.htm
http://blog.csdn.net/yimingsilence/arti ... s/52852309
[知乎]使用conda管理python环境

实际测试:
C:>conda create -n python3 python=3.5.2 Fetching package metadata ............. Solving package specifications: . Package plan for installation in environment C:\Anaconda3\envs\python3: The following NEW packages will be INSTALLED: pip: 9.0.1-py35_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/ pkgs/free python: 3.5.2-0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/ pkgs/free setuptools: 27.2.0-py35_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/ pkgs/free vs2015_runtime: 14.0.25123-0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/ pkgs/free wheel: 0.29.0-py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/ pkgs/free Proceed ([y]/n)? y vs2015_runtime 100% |###############################| Time: 0:00:05 356.68 kB/s python-3.5.2-0 100% |###############################| Time: 0:00:23 1.34 MB/s setuptools-27. 100% |###############################| Time: 0:00:01 400.56 kB/s wheel-0.29.0-p 100% |###############################| Time: 0:00:00 786.00 kB/s pip-9.0.1-py35 100% |###############################| Time: 0:00:02 669.74 kB/s # # To activate this environment, use: # > activate python3 # # To deactivate this environment, use: # > deactivate python3 # # * for power-users using bash, you must source #
这里的 activate python3 不需要在前面加 conda ,直接在终端执行 activate python3 即可
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

Anaconda - .py 文件关联

帖子 523066680 »

[参考]how-do-you-change-file-association-for-py-python-files-in-xp
http://stackoverflow.com/a/30272728
C:\>assoc | findstr -i python .py=Python.File .pyc=Python.CompiledFile .pyo=Python.CompiledFile .pyw=Python.NoConFile C:\>ftype | findstr -i python Python.CompiledFile="C:\Python27\python.exe" "%1" %* Python.File="C:\Python27\python.exe" "%1" %* Python.NoConFile="C:\Python27\pythonw.exe" "%1" %*
写到批处理,用管理员权限运行:
@echo off
assoc .py=Python.File
assoc .pyc=Python.CompiledFile
assoc .pyo=Python.CompiledFile
assoc .pyw=Python.NoConFile

ftype Python.CompiledFile="C:\Anaconda3\pythonw.exe" "%%1" %%*
ftype Python.File="C:\Anaconda3\python.exe" "%%1" %%*
ftype Python.NoConFile="C:\Anaconda3\pythonw.exe" "%%1" %%*
pause
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客