問題1:pip 安裝包慢
在用戶目錄下創(chuàng)建pip目錄,并在pip目錄下創(chuàng)建pip.ini
例如: C:\Users\Admin\pip\pip.ini 文件內容如下逞姿,國內的地址可以有很多滞造,網上查找谒养。
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
問題2:
在用pip安裝的時候遇到Cannot uninstall ****买窟,It is a distutils installed project and thus we cannot accurate的處理
pip install tensorflow --ignore-installed ***
例如: pip install --ignore-installed scikit-learn
問題3:列出pip 的全局安裝目錄
python -m site
#查看site路徑,然后可以修改其中的配置 USER_SITE
python -m site -help