conda创建虚拟环境 python版本不对,使用conda创建虚拟环境,尽管指定了版本,但我得到的Python版本错误。为什么?...

I need a virtual environment with Python 3.5, so I can run some tensorflow projects (tensorflow doesn't work on Python 3.6, which I normally use). I use conda because (as you'll see) I'm so bad at unix/understanding my computer.

I type in

conda create -n myenv python=3.5

and then

activate myenv

and then, to check, Python version,

python -V

The reply is Python 3.6 which is not the one I want.

Looking at this question, it seems like I need to install Python 3.5 outside of the virtual environment in order to call it, but how do I do that without messing with my installation of Python 3.6?

I get that this is a basic question but I'm terrible at computers and would be so grateful for any replies. Talk to me like I'm a child bc that's basically the level I'm on.

解决方案

I finally figured out what was wrong (sort of) by looking at this question. If i typed in

cd ..

to go one step up in the folder struction, and then checked my Python version, I had the right version (Python 3.5). From there I could install tensorflow and it was imported to python without problem. I have no idea why, but it works so I can't complain.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值