系統環境:
Ubuntu 16.04
安裝
sklearn庫學習
- sklearn庫的學習–轉載
- 視頻資料
- pandas
- pandas 0.23.4 documentation
- python學習
- 查看python中模塊的所有方法
- Python3導入自定義模塊的3種方式
[注]使用python xxxx.py &可以讓程序在後臺運行。使用pip install -r xxx.txt
可以批量下載,在文件xxx.txt裏面最好是每一行一個下載文件。同時注意使用pip install xxxx == 版本號可以指定版本下載
,但是需要注意>和<是定向符號,因此指定版本範圍時,需要使用單引號,例如pip install ‘xxx>=版本號’
。
問題
A:遇到這個問題: pip升級後Import Error:cannot import name main解決方案
Q:解決方法
A:ImportError: No module named ‘Quandl’
Q: python3 安裝 quandl 庫
pip3 install quandl
註冊quandl賬號,獲得key
代碼
import pandas as pd
import quandl
df = quandl.get('WIKI/GOOGL')
#df = df[['Adj. Open','Adj. High','']]
print(df.head())