anaconda python3.4_anaconda在Windows上安装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.

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

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 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 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.

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.

My suggestions:

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值