Anaconda环境没有找到已安装的软件包

时间:2017-06-10 13:54:32

标签: python anaconda

我正在尝试利用conda环境来隔离包和依赖项。 创建conda环境并安装包。仍然无法导入和使用包..

以下是我的步骤

==> conda create --name test biopython

==> source activate test

==> which python
/Users/sahaswaranamam/anaconda/envs/test/bin/python

==> pip install google_search
...installation happens here...

==> ipython
In [1]: import google_search
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-676be9f470ae> in <module>()
----> 1 import google_search

ModuleNotFoundError: No module named 'google_search'

1 个答案:

答案 0 :(得分:-1)

我认为这是你安装的

https://pypi.python.org/pypi/google-search/1.0.2

根据该文件,您可以使用:

import googlesearch

确保您不想安装search-google,这似乎更受欢迎(https://pypi.python.org/pypi/search-google/1.0.4