我一直在使用'conda list'列出环境中的包。然后生成的列表不包括我知道在环境中安装的软件包,在本例中为flickrapi。
((getpics)) C:\Users\Rdebbout>conda list fl
packages in environment at C:\Users\Rdebbout\AppData\Local\Continuum\Anaconda2\envs\getpics:
pyflakes 1.1.0 py27_0
这指向正确的环境,如果你看下面,当我在同一个环境中时,我可以毫无问题地导入flickrapi
((getpics)) C:\Users\Rdebbout>ipython
Python 2.7.11 |Continuum Analytics, Inc.| (default, Feb 16 2016, 09:58:36) [MSCv.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 4.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from flickrapi import FlickrAPI
In [2]:
这是什么原因?