我正在尝试利用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'
答案 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)