文章目录

  • 前言
  • 1 下载&安装
    • 1.1 下载
    • 1.2 安装
    • 1.3 如何安装anaconda之前版本?
    • 1.4 anaconda太大了,还可以安装miniconda
    • 1.5 如果出现 “Setup was unable to create the directory”, “Access is denied”, or “Error opening file for writing” 这类问题怎么办
  • 2 在anaconda上运行第一个程序
    • 2.1 在anaconda navigator中运行
    • 2.1 在anaconda prompt中运行
  • 参考文献

前言

本文旨在介绍在win10上安装anaconda。

1 下载&安装

1.1 下载

下载地址:https://www.anaconda.com/download/



下载界面,我选择的是64位python 3.7版本

64位安装包:Anaconda3-5.3.0-Windows-x86_64
32位安装包:Anaconda3-5.3.0-Windows-x86
学到了,这就是64和32的命名区别,前者多一个64.

1.2 安装

接下来自然是默认安装:



当然,我修改了软件安装路径。

注意,官方提示http://docs.anaconda.com/anaconda/install/windows/:

NOTE: Install Anaconda to a directory path that does not contain spaces or unicode characters.
NOTE: Do not install as Administrator unless admin privileges are required.

即:1)不要把anaconda装在空格或者unicode字符的路径上(我理解的是有空格或者中文字符的路径吧)
2)不要 install as Administrator

此外,在安装过程中,anaconda并不推荐自动设置环境变量,原话解释是:may cause problems requiring you to uninstall and reinstall Anaconda.我也暂不深究了。
这里贴一下官方解释:

We recommend not adding Anaconda to the PATH environment variable, since this can interfere with other software. Instead, use Anaconda software by opening Anaconda Navigator or the Anaconda Prompt from the Start Menu.

.

整个安装时间还挺长。十多分钟至少。
中间有个visual studio code的安利,我拒绝了:



这个安利暂时不吃,感觉没必要。现在用不到

1.3 如何安装anaconda之前版本?

根据 http://docs.anaconda.com/anaconda/faq/#how-do-i-get-anaconda-with-python-3-5-or-3-6的指导,

You can download previous versions of Anaconda from the Anaconda installer archive.

anaconda之前版本都在这儿: https://repo.anaconda.com/archive/

1.4 anaconda太大了,还可以安装miniconda

参考:http://docs.anaconda.com/anaconda/install/

TIP: If you don’t want the hundreds of packages included with Anaconda, you can install Miniconda, a mini version of Anaconda that includes just conda, its dependencies and Python.

miniconda五脏俱全,包含:conda,conda的依赖,python。

官方:https://conda.io/docs/user-guide/install/index.html

The fastest way to obtain conda is to install Miniconda, a mini version of Anaconda that includes only conda and its dependencies. If you prefer to have conda plus over 720 open source packages, install Anaconda.

miniconda下载地址:https://conda.io/miniconda.html

1.5 如果出现 “Setup was unable to create the directory”, “Access is denied”, or “Error opening file for writing” 这类问题怎么办

参考:http://docs.anaconda.com/anaconda/user-guide/troubleshooting/#distro-troubleshooting-favorites-folder

Windows permission errors when installing from Favorites folder
Cause
The Windows Favorites folder has unusual permissions and may cause permission errors with installers of any software. If you try launching the installer from the Favorites folder you may see errors such as “Setup was unable to create the directory”, “Access is denied”, or “Error opening file for writing”.
Solution
Move the installer to a different folder and run the installer from the new folder.

多半是anaconda的安装目录是 Windows Favorites folder[1],这个favorite folder具体是什么我也不懂,可以参考[1]。这时候,anaconda是没有写文件的权限的,所以最好换一个目录安装。

2 在anaconda上运行第一个程序

2.1 在anaconda navigator中运行

先打开Anaconda Navigator:


然后进入主界面,点击spyder的launch就可以啦


然后F5run就完事了。

2.1 在anaconda prompt中运行

也可以在anaconda prompt中运行,还是在windows开始菜单中找到anaconda prompt,打开,输入print("Hello Anaconda!")


输入ctrl+z即可退出,其实也可以输入exit(0)。就是辣么神奇。虽然官方说不行。

On Windows press CTRL-Z and press Enter. On macOS or Linux type exit() and press Enter.

参考文献

[1] Where is the Favorites folder in Windows 10 so i can back it up. https://answers.microsoft.com/en-us/windows/forum/windows_10-files/where-is-the-favorites-folder-in-windows-10-so-i/6930cec2-8f2d-4e07-bf99-46c0974b69f0

在win10上安装Anaconda并运行python程序相关推荐

  1. anaconda怎么运行python程序-致Python初学者 Anaconda入门使用指南完整版

    打算学习 Python 来做数据分析的你,是不是在开始时就遇到各种麻烦呢? 到底该装 Python2 呢还是 Python3 ? 为什么安装 Python 时总是出错? 怎么安装工具包呢? 为什么提示 ...

  2. anaconda怎么运行python程序_怎么用cmd运行python

    怎么用cmd运行python? 用cmd运行python程序 步骤:(1)打开cmd. (2)转到你要运行的文件所在的盘(例如:E盘).输入: e: 回车 (3)打开你要运行的文件所在的文件夹(例如: ...

  3. win10在命令行下运行python程序

    运行python程序之前,一定要设置好环境变量,否则无响应. 假设我们的python程序放在D盘的test文件夹下,名字为hello.py,运行方式如下: Win+R打开cmd 输入:"  ...

  4. anaconda怎么运行python程序_第一个python程序,从安装python环境到人生第一个py脚本运行全过程...

    文章目录 前言一.安装python运行环境 1.官网https://www.python.org下载安装包.exe 2.安装python二.python模块下载 1.配置pip环境变量 2.下载pyt ...

  5. Win10上安装anaconda深度学习开发环境

    1.下载anaconda 点开下面的链接,下载版本Anaconda3-4.1.1-Windows-x86_64.exe https://repo.anaconda.com/archive/ 2.安装a ...

  6. anaconda怎么运行python程序_Heartrate:如追综心跳般实时动态可视化监测Python程序运行...

    机器之心报道 参与:一鸣.杜伟 Python 是一门非常受欢迎的编程语言,其灵活易用的特性使其在 web 应用.数据分析等方面有广泛的应用.但是 Python 有一个受到诟病的特点--运行速度低下.因 ...

  7. anaconda怎么运行python程序_Anaconda安装指南(#x27;conda#x27; 不是内部或外部命令,也不是可运行的程序 或批处理文件)...

    如果你有标题所说问题,请详细看以下步骤: 第一步:附上软件下载链接,自行下载 Anaconda Python/R Distribution - Free Download​www.anaconda.c ...

  8. anaconda怎么运行python程序_Python中四种运行其他程序的方式,你知道吗?

    前言 在Python中,可以方便地使用os模块来运行其他脚本或者程序,这样就可以在脚本中直接使用其他脚本或程序提供的功能,而不必再次编写实现该功能的代码.为了更好地控制运行的进程,可以使用win32p ...

  9. 在Win10上安装Anaconda和tensorflow

    1.去官网下载anaconda,地址:https://www.anaconda.com/distribution/#download-section 或者清华镜像网站:https://mirrors. ...

最新文章

  1. VTK:标记数据映射器用法实战
  2. linux怎么查看sklearn版本,Sklearn——Sklearn的介绍与安装
  3. 胆大,心黑,脸皮厚,某大佬透露的把妹绝招
  4. html两个select怎么放在一行,HTML`select`和`input`在一行中
  5. Ubuntu 实现点击菜单栏图标最小化程序
  6. python lxml_python – lxml使用命名空间而不是ns0,ns1,
  7. TTL转USB电路(CH340G)
  8. 解决laydate坑之chang回调无效 range开启
  9. 界面画好了如何开发软件_如何做儿童类APP?来看英语流利说的实战经验总结!...
  10. 伍斯特理工学院计算机硕士怎么样,伍斯特理工学院硕士怎么样?
  11. Vue+ElementUI后台管理系统模板推荐
  12. python opencv 函数库说明
  13. 电脑网络连接怎么设置
  14. LeetCode-外观数列【小名带你解读LeetCode第38题-外观数列 的题目!最清晰的题解】
  15. 基于Android的微信主界面
  16. 玩转英伟达jetson系列(一)刷系统
  17. Linux学习笔记-随即更新-慢速学习
  18. 交换机基本原理与应用
  19. SQLZOO 答案—完整版
  20. 【Android每日一讲】2012.11.27 向左或向右 - RadioGroup组与onCheckedChanged事件

热门文章

  1. 可视化展示——web展示页面
  2. 华为光伏逆变器无线数据采集接线说明
  3. 用C#制作有提示窗体的日程管理器
  4. 如何实现HTML5动画页面?
  5. MSP430单片机ADC模数转换器的初始化
  6. 《数理统计》王晓光答案
  7. 软件测试周刊(第19期):以能力、流程、指标和工具为轴心打造一流的质量保证部门
  8. JavaScript最简单的方式写万年历
  9. 高精度定位系统服务器,5G+UWB智慧工厂高精度定位解决方案
  10. pgsql的UUID生成函数