Install two python modules with same name

隐身守侯 提交于 2019-11-30 14:17:47

First, I'd suggest you guys go over what other libraries you're all using so you can get a concesus on how you're building your application.

To support this type of thing place each module within it's own folder, put in an __init__.py file, then you can do this:

import Folder1.facebook as pyfacebook
import Folder2.facebook as facebooksdk

The easiest solution would be to include one (or both) of the modules in your project instead of installing it. Then, you can have more control over the module name and importing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!