[英]Library package not in module PyCharm, even though I've already installed it
因此,我想使用Quandl包来学习一些数据处理。 我在PyCharm软件包中安装了Quandl,效果很好。
import Quandl, math
然后,我使用Quandl从互联网上获取一些数据
data = Quandl.get('some form of data')
但是当我尝试运行python脚本时
bash-3.2$ python Regression.py
Traceback (most recent call last):
File "Regression.py", line 2, in <module>
import Quandl, math
ImportError: No module named Quandl
在我的PyCharm解释器中,我有4种不同的类型:
-2.7.11(/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7)我在这里安装了Quandl
-3.5.1(/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/bin/python3.5)我也在这里安装了它
-2.6.9(/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6)安装打包工具时出错
-/ System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7安装权限被拒绝
当我尝试通过python shell在终端中导入Quandl时,我也退出了一个错误
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Quandl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Quandl
我还为Simple CV尝试了相同的操作,它还说它不在模块中,即使我已经在3.5和2.7中都安装了它。
from SimpleCV import Camera
cam = Camera()
while True:
img = cam.getImage()
img = img.binarize()
img.drawText("Hello World")
img.show()
bash-3.2$ python simplecv.py
Traceback (most recent call last):
File "simplecv.py", line 1, in <module>
from SimpleCV import Camera
ImportError: No module named SimpleCV
对于安装“ pip”,在PyCharm终端中安装它时也出错。 我已经问过一个问题, 在Pycharm 2016.3中安装pip
尝试转到命令提示符并输入:
pip install quandl
如果您没有点子,则可能不起作用,但值得一试。
使用import quandl
而不是import Quandl
。
我遇到了Quandl的类似问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.