Reputation: 6849
In my project I want to import the commands, so I put the bellow code in my project:
import commands
but however there I get error:
No module named commands less... (⌘F1)
This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.
Upvotes: 4
Views: 25907
Reputation: 26924
The commands
module has been removed in python3, you can check there:
Deprecated since version 2.6: The commands module has been removed in Python 3. Use the subprocess module instead.
Upvotes: 2
Reputation: 1440
From the documentation:
Deprecated since version 2.6: The commands module has been removed in Python 3. Use the subprocess module instead.
You can follow this link: https://docs.python.org/2/library/commands.html
Upvotes: 8