This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
When trying to run the Python Tool in Alteryx, I need to import os in my python script and when I try to do so it says os is not found. The error that comes up is:
Could not find a version that satisfies the requirement os (from versions: )
No matching distribution found for os
This error happens when I use the prompt Package.installPackages(['pandas','os']) in the executable. I was wondering if anybody knew of a way to properly import os into the Python Tool in Alteryx.
The OS module is part of the standard library that installs with python. You should be able to use it without having to install.
Go ahead and type:
Then the rest of your code following should be all set