I am working on a Django project that uses Python 3 in virtualenv. I just came across a fabric that only works under Python 2, so I installed it in the system format, not in my virtualenv (can I even put this in my Python 3 virtualenv, btw?).
The problem is that I installed PyCharm to use Python 3 as an interpreter and installation for Python 2. When I edit the file in the file, it says that all the imports from the fabric are unknown.
Is there any way to solve this? Any way to assign my fabric file to use Python 2 interpreter instead of Python 3 or another solution?
source share