[問題] 重裝Linux系統如果保留python環境

作者: threeSecGun (三秒槍)   2019-01-27 21:04:05
目前打算將一台Ubuntu16.04升級18
但在作do-release-upgrade -d指令升級時
都顯示 Your python3 install is corrupted. Please fix the '/usr/bin/python3'
無法升級
試過重新reinstall python3仍無效
若最後只能重新裝LINUX系統的話
有什麼比較好的方式可以保留現在使用的python3系統環境
因為在使用anaconda裝好python後 還有裝了不少python套件
(非使用conda install安裝的套件)
重裝LINUX系統後
安裝完python可能還需求很多時間去找使用到的相關套件
想請教有什麼方式可以把目前python環境保留轉到新系統
※ 編輯: threeSecGun (49.213.204.25), 01/27/2019 21:06:10
作者: TuCH (謬客)   2019-01-27 21:54:00
pip freeze
作者: threeSecGun (三秒槍)   2019-01-27 22:49:00
感謝解決問題點~ 再來試試看
作者: ripple0129 (perry tsai)   2019-01-28 21:50:00
pip freeze > requirements.txt; pip install -r requirements.txt
作者: rexyeah (ccccccc)   2019-01-29 09:10:00
推ripple
作者: threeSecGun (三秒槍)   2019-01-30 17:26:00
重試過後 仍會卡在Talib套件應該是當初用原始檔make安裝的關係目前仍卡在新機器Ubuntu18無法裝上talib套件.

Links booklink

Contact Us: admin [ a t ] ucptt.com