1

I installed Anaconda on my Windows XP machine about a week ago. It came with Python 2.7.

I am trying to create a Python 3.3 environment on it. I followed these directions, resulting in downloading a bunch of stuff, with no error messages.

The instructions said I had to change my path, but they did not say how. There are new folders called I:\Python33 and I:\Anaconda\envs\py33 on my PC. I added I:\Python33 to my PATH.

I shut down and restarted Anaconda several times. I cannot get import scitools.pprint2 to work in a Python interpreter (I think I need Python 3.3 for this).

I get this error:

Traceback (most recent call last):

  File "<ipython-input-2-8852894fb85d>", line 1, in <module>
    import scitools.pprint2

ImportError: No module named scitools.pprint2

How should I troubleshoot this error?

3

I would try:

$ conda create -p path\to\your\virtualenv python=3.3 nameOfVirtualenv
  • Would that be in place of a certain line or would it be on its own? – Raystafarian Jul 21 '13 at 21:18
  • The is a command to be run from terminal (cmd). Or did I get You wrong? – Adobe Jul 21 '13 at 21:19
  • No, it's not my question, I was just asking for some clarification on the answer – Raystafarian Jul 21 '13 at 21:23
  • I expect it to be a clean new anaconda virtualenv with python3.3. – Adobe Jul 21 '13 at 21:29
  • 1
    I think You should only move to anaconda a) once You master vanilla python ecosystem b) once You really have to. Otherwise it's just another setup level. – Adobe Jul 23 '13 at 5:38
5

This has been cleaned up a bit. You can now do:

conda update conda  
conda create -n py33 python=3.3 anaconda
activate py33

Unfortunately scitools fails to build still, are you sure it's python 3 compatible?

  • Thanks. I haven't really done anything with Python in a long time. Matlab, Octave, and Maple seem to do everything I need. A previous commenter recommended against using anaconda until I'd mastered basic python. I'm a math person, not a computer person, and unfortunately it seem difficult for a non-computer type to install and use a really good GUI for Python, let alone decide which one to use. Eventually, if I move to a "real" language, I would like to use Python. – Stefan Smith Dec 6 '13 at 14:24
  • I think those are all great systems. If you do plan on using Python, I actually disagree with your commenter. Anaconda will use all the tools needed to get started (just like Matlab and others). It includes the excellent Spyder GUI. Good luck! – aterrel Dec 6 '13 at 18:18
  • 1
    I have done this successfully. One tips, download miniconda instead of Anaconda. Since we are going to setup all 3.3 Anaconda packages, there is no point in installing the 2.7 anaconda, which takes 1.5 GB disc space. miniconda includes only the base Python and you can install your choice of packages later. – Wai Yip Tung Dec 16 '13 at 5:14
1

You can also use the anaconda Navigator. It is installed by default with recent enough Anaconda installer.

In the Environments tab, you click on Create button and you set the name and the Python version you want to use:

enter image description here

From this menu, you can also launch the terminal, a Python command line, an IPython command line and the Jupyther notebook, all with the environment you choose: enter image description here

I think it's what you where missing: stating Python with the new environment.

You can do the same with command line, but for the usage you described this graphical way may suit you better.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.