Python庫相關包安裝
阿新 • • 發佈:2021-06-20
# 資料處理相關包 pip install numpy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install openpyxl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 爬蟲相關包 pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 視覺化相關包 pip install matplotlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install seaborn -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pyecharts -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 操作資料庫相關包 pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install sqlalchemy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 文字處理分析相關包 pip install jieba -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
專案依賴包安裝 若執行程式報No module named XXX 錯誤,則需要安裝XXX包。 常用包及安裝方法如下: -i 後面指定國內安裝源安裝,下載速度更快 pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 或 pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn # 安裝jupyter: pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn # 資料處理相關包 pip install numpy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install openpyxl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 爬蟲相關包 pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 視覺化相關包 pip install matplotlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install seaborn -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pyecharts -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 操作資料庫相關包 pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install sqlalchemy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 文字處理分析相關包 pip install jieba -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com # 地圖資料包(echarts地圖視覺化時需要用到) pip install echarts-countries-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install echarts-china-provinces-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install echarts-china-cities-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install echarts-china-counties-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install echarts-china-misc-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install echarts-united-kingdom-pypkg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com