我的机器在 Windows 10 上运行,我最近安装了 python 3.6 和我以前的 python 2.7,无法在 python 3.6 中导入库。
You can reinstall all libraries installed by saving list of them:
python -m pip freeze > libraries.txt
(please notice python
is Python 2.7 here)
Next you should install all of them with Python 3:
python3 - pip install -r libraries.txt
But not all old libraries are compatible with new version of Python!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.