安裝miniconda後,pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
更換pip源,等價於在C:\Users\xxx\AppData\Roaming\pip
下新建pip.ini
,編輯:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
創建新環境:conda create -n zjz python=3.10
,conda activate zjz
安裝jupyter notebook : pip install jupyter ipykernel
切換環境後運行jupyter notebook
默認kernel就包含這個環境中的庫
解決依賴包版本:pip install xxx==x.x.x