Inconsistent isort results from the same version

The same version of all packages on two machines. The difference — one has them on virtualenv, the other globally.

The problem

isort can’t correctly determine which imports are from third party and first party when it’s installed globally.


With conversion to virtualenv

Just install it in virtualenv. It may not be optimal when you’re using virtualization already.


In isort settings file set:


Also list all your local packages in the following option:


For example:


Cumbersome, but that’s the workaround. Hopefully it will be fixed.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.