所以我想使用Quandl包學習一些數據處理。我在pycharm包中安裝了Quandl,結果非常好。圖書館不在Pycharm中,儘管我已經安裝了它
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/Vers ion/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
我也嘗試過簡單簡歷的同樣的事情,它也表示它不在模塊中,即使我已經在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
對於安裝'點',我也有一個錯誤安裝它在Pycharm終端。我已經提出了一個關於它的問題在Pycharm中安裝pip 2016.3
如果您運行的腳本包含安裝了Quandl的一個python的完整路徑,那麼結果是什麼?例如:'/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Regression.py' – Giordano
我得到了一個bash:/ usr/local/Cellar/python /2.7.11/Frameworks/Python.framework/版本/ 2.7/bin/pyt hon2.7:沒有這樣的文件或目錄 – Imperator123