我对Python比较陌生,而且我坚持一些可能相对容易解决的问题.
我安装了以下软件包:
pip install --upgrade google-api-python-client pip install --upgrade google-cloud pip install --upgrade google-cloud-vision
在我的Python文件中,我有:
import cv2 import io import os # Imports the Google Cloud client library from google.cloud import vision ...etc...
这给了我错误:
Traceback (most recent call last): File "test.py", line 6, infrom google.cloud import vision ImportError: No module named 'google.cloud'
我错过了什么,我应该在哪里(日志?)找到答案.
PS:
Pip安装google-cloud
并google-cloud-vision
输出:
Cannot remove entries from nonexistent file /Users/foobar/anaconda/lib/python3.5/site-packages/easy-install.pth
更新:
运行pip freeze
不显示要安装的包...