1
2
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?
Would that be in place of a certain line or would it be on its own? – Raystafarian – 2013-07-21T21:18:47.467
The is a command to be run from terminal (cmd). Or did I get You wrong? – Adobe – 2013-07-21T21:19:58.743
No, it's not my question, I was just asking for some clarification on the answer – Raystafarian – 2013-07-21T21:23:29.333
I expect it to be a clean new anaconda virtualenv with python3.3. – Adobe – 2013-07-21T21:29:08.297
@StefanSmith: I thought there should be the name of the virtualenv at the end. Looks like it doesn't. Can You remove that and try again? – Adobe – 2013-07-21T22:21:05.987
@Adobe : Thanks again. I entered " conda create -p path\to\your\virtualenv python=3.3 " at the command line. Then I got a response that python-3.3.2 would be linked, then "Linking packages...", then "COMPLETE". No error messages. Then I launched Anaconda. I entered " import scitools.pprint2 " at an IPython console. I got the same error message that I reported in my original question. – Stefan Smith – 2013-07-22T02:03:26.533
@Adobe : The reason I am trying to get Python 3.3 to work is that I thought I needed it to get "import scitools.pprint2" to work. Is that premise correct? If not, can you suggest a possible way to get "import scitools.pprint2" to work? – Stefan Smith – 2013-07-22T02:31:36.127
You have to import
scitools
first:import scitools
. After that You'll be able toimport scitools.pprint2
. And I don't think python3.3 was a prerequisite for this. – Adobe – 2013-07-22T07:13:47.640@Adobe : I ended up uninstalling Anaconda, installing Python 3.3 from the main Python site, and installing Scitools separately. – Stefan Smith – 2013-07-22T23:48:45.667
1I 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 – 2013-07-23T05:38:34.360