Python安裝包以及 pip 和conda 國內映象源
目錄
2,尋找特定版本的python包,比如tensorflow包,先搜尋在安裝
2.pip install missingno 成功 缺失值的視覺化
4.pip install pandas_profiling 成功;
5. pip install tqdm6. pip install folium :畫地圖的庫,每個國家的大概形狀,視訊裡探索性資料分析裡面有,7. pip install pivottablejs
pip國內映象源:
~$ pip install tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple/
其他國內映象
其他國內映象還有
http://pypi.hustunique.com/
http://pypi.sdutlinux.org/
https://pypi.mirrors.ustc.edu.cn/simple/
http://mirrors.aliyun.com/pypi/simple/
http://pypi.douban.com/simple/
---------------------
conda 國內映象源 Ubuntu系統
conda源更改:
conda源國內只有清華有,
修改源只需輸入如下兩條命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
---------------------
Python包的安裝
1,pip install [本地安裝]:
先下載安裝包
http://www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost 這裡面基本上我們能用的包都有找到對應的符合我的系統環境的版本,Python3.6,windows
2,尋找特定版本的python包,比如tensorflow包,先搜尋在安裝
conda search tensorflow-gpu 檢視對應的cuda和cudnn版本,
anaconda search -t conda tensorflow 這個是尋找TensorFlow版本 關注點在版本和平臺,找到名字複製下來比如 n-west/tensorflow-cpu
然後輸入命令 anaconda show n-west/tensorflow-cpu 就會告訴我應該怎樣安裝這個版本的tensorflow
To install this package with conda run:
conda install --channel https://conda.anaconda.org/n-west tensorflow-cpu
1. omgtools包的安裝 2步:(Ubuntu系統)
pip install omg-tools
conda install -c conda-forge ipopt
2.pip install missingno 成功 缺失值的視覺化
missingno這個包的某一些功能需要依賴geoplot ,安裝安裝geoplot 安裝完成後也不能使用特定的畫圖功能msno.geoplot(datefram, x='LONGITUDE', y='LATITUDE')????????????
conda install geoplot -c conda-forge
3.import cv2 成功
windows 包的安裝
pip install opencv-python
pip3 install opencv-python
4.pip install pandas_profiling 成功;
失敗 :寫成Profiling出現:Microsoft Visual C++ 14.0 is required 的解決方案
方法:安裝一個軟體即可,在本地已經下載,百度網盤裡也有軟體包裡visualcppbuildtools_full.exe
5. pip install tqdm
6. pip install folium :畫地圖的庫,每個國家的大概形狀,視訊裡探索性資料分析裡面有,
7. pip install pivottablejs