简体   繁体   中英

unable to import libraries to python 3.6 ,libraries installed in python 2.7

我的机器在 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM