Question

I have installed canopy express that comes with many packages to avoid interdependencies. python works fine on the prompt. I can execute codes and all is well. but the link cites many packages are included in canopy express such as pytest. but when I try to import pytest, I get importError. Even the help("modules") to list all the modules does not work. Anyone using Canopy express can comment if these packages(pytest, curl, distribute etc) are present or not.

Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug  8 2013, 05:37:06) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help("modules")
no Python documentation found for 'modules'

>>> import pytest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pytest
>>> import distribute
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named distribute
>>> import curl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named curl
>>> import pandas
>>>
Was it helpful?

Solution

While it's a bit confusing at times, Canopy Express refers to both the lightweight installer that is available to free users as well as referring to the set of packages that is available to these users. By default, the installer does not include all of these but only the main packages, such as numpy, matplotlib, and pandas.

From within Canopy, you should be able to install any of the remaining free packages (pytest, curl, etc.) and, if you've registered for an Enthought account, you'll be able to use this manager to update/delete these packages as well.

See the following articles for more help, including information on command line tools for updating:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top