一、激活環境,使用pip install package即可安裝指定的包到當前的虛擬環境
二、使用which pip查詢到當前pip的所在位置,即可將package 安裝到當前pip所在的環境,但更推薦使用一****
/hone/user/anaconda3/bin/pip install package
BUT:我在安裝librosa的時候出現如下錯誤。
ERROR: Cannot uninstall ‘llvmlite’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
我的解決辦法是:
pip install librosa --ignore-installed llvmlite
reference:
https://github.com/blockstack/blockstack-core/issues/504