anaconda在Windows上安装python 3.4 [英] anaconda install python 3.4 on windows

查看:725
本文介绍了anaconda在Windows上安装python 3.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Anaconda安装和使用python 3.4及其众多库(例如numpy,pandas等).不幸的是,我无法激活python 3.4.

I want to install and use python 3.4 and its numerous libraries, (such as numpy, pandas, etc) using Anaconda. Unfortunately, I am unable to activate python 3.4.

我在Windows 8笔记本电脑上安装了Acaconda 2.0(Anaconda-2.0.0-Windows-x86_64). Anaconda程序已正确安装,并安装了python 2.7.然后,我尝试在C:\ Program Files \ Anaconda目录的命令提示符下使用这些命令安装python 3.4.

I installed Acaconda 2.0 (Anaconda-2.0.0-Windows-x86_64) on a Windows 8 notebook. The Anaconda program installed properly and python 2.7 was installed. I then attempted to install python 3.4 using these commands at a command prompt in the C:\Program Files\Anaconda directory.

$ conda update conda
$ conda create -n py34 python=3.4 anaconda
$ activate py34

由于我没有看到任何错误消息,所以前两个似乎工作正常.在最后一步,我收到以下错误消息:No environment named py34 exits in C:\Program Files\Anaconda\envs

The first two seemed to work fine as I saw no error messages. At the last step I receive the following error message: No environment named "py34" exits in C:\Program Files\Anaconda\envs

Python 3.4未安装在C:\ Program Files \ Anaconda中,而是安装在C:\ Users \ Daddio1949 \ envs \ py34目录中.

Python 3.4 was installed not in the C:\Program Files\Anaconda but in the C:\Users\Daddio1949\envs\py34 directory.

我不确定如何继续完成安装,该怎么办?

I not sure how to proceed to finalize the installation, what should I do?

推荐答案

Anaconda使用相对路径来定位envs文件夹.每当您运行anaconda.batactivate.bat脚本时,该脚本都会查找其自己的位置,例如C:\someplace\Scripts\activate.bat,然后查找..\envs文件夹,例如C:\someplace\envs.

Anaconda uses relative paths to locate the envs folder. Whenever you run the anaconda.bat or the activate.bat script, the script looks for its own location, e.g. C:\someplace\Scripts\activate.bat, then looks for an ..\envs folder, e.g. C:\someplace\envs.

您在这里描述的内容听起来像是您在%PATH%变量中有多个带有*.bat脚本的文件夹(可能是因为您没有对C:\Program Files\Anaconda文件夹的写权限). 在运行activate.bat时,它似乎来自您的C:\Program Files文件夹,而conda似乎是从您的C:\Users目录运行的.

What you are describing here sounds to me like you are having multiple folders with the *.bat scripts in your %PATH% variable (likely because you haven't writing rights for the C:\Program Files\Anaconda folder). When running activate.bat it seems to come from your C:\Program Files folder, whereas conda seems to run from your C:\Users directory.

我的建议:

  • 尝试从您的C:\Users\Daddio1949\Scripts目录(如果存在)中运行*.bat脚本.如果不存在,请将activate.batdeactivate.bat从Anaconda Scripts目录复制到您的用户脚本目录,然后从其中运行*.bat文件.
  • 尝试找出Windows %PATH%文件夹中是否还有其他activate.bat.确保您呼叫正确的人.
  • Try to run the *.bat scripts from your C:\Users\Daddio1949\Scripts directory (if present). If it does not exist, copy activate.bat and deactivate.bat from the Anaconda Scripts directory to your user scripts directory and run the *.bat files from there.
  • Try to find out if you have other activate.bat in your Windows %PATH% folders. Make sure that you call the right one.

这篇关于anaconda在Windows上安装python 3.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆