conda簡單配置

安裝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.10conda activate zjz

安裝jupyter notebook : pip install jupyter ipykernel

切換環境後運行jupyter notebook默認kernel就包含這個環境中的庫

解決依賴包版本:pip install xxx==x.x.x

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章