問題描述
- 環(huán)境:windows10,使用conda虛擬環(huán)境,python36環(huán)境
- 安裝jupyter notebook
pip install notebook -i https://pypi.douban.com/simple/
Building wheels for collected packages: pyrsistent
Running setup.py bdist_wheel for pyrsistent ... error
Failed building wheel for pyrsistent
Running setup.py clean for pyrsistent
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 38: invalid start byte
解決方案
目錄位置參考:D:\ProgramData\Miniconda3\envs\python36\Lib\site-packages
刪除pyrsistent安裝目錄,如:pyrsistent-0.15.5-py3.6.egg-info
- 已經(jīng)嘗試直接使用pip進行安裝仪搔,本人嘗試結果為安裝失敗
- 已經(jīng)嘗試
pyrsistent
中的issue中的方案忧换,均失敗恬惯。
使用源碼安裝pyrsistent
源碼鏈接:https://github.com/tobgu/pyrsistent
release:https://github.com/tobgu/pyrsistent/releases
python setup.py install
- 重新安裝jupyter notebook亚茬,成功
pip install notebook -i https://pypi.douban.com/simple/