1

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.

2
  • 1
    Tensorflow works on python 3.6 on all platforms at least since TF 1.2. Are you working with a TF version earlier than that? Commented May 28, 2018 at 16:32
  • @user1735003 I'm using pip install and that installs TF version 0.12. It says it's successfully installed, but when I open python and try to import TF, it says "No module named Tensorflow" Commented May 29, 2018 at 8:42

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.