Does PyCharm support using Linux packages in Windows?

I will be using a Windows box with PyCharm to develop Linux scripts. Since pwd is not a native Windows package the IDE may not know about it. In other IDE's, it assumes this is an error because it doesn't know about the pwd package. How does PyCharm support this? 

2 comments
Comment actions Permalink

Hi,

I assume by `pwd` you mean the Linux utility that display current working directory to standard output.

It's not necessary for functioning of PyCharm and Python interpreter. Of course you won't be able to use pwd in the terminal from PyCharm

0
Comment actions Permalink

Andrey Resler the pwd package is a python package that provides access to the Unix password database. It has nothing to do with the pwd command. When developing on Windows, PyCharm complains about an unknown package, which is annoying when we know that the code will run on Linux.

The way this should be handled is probably with a new type of Python Interpreter (alongside "Virtualenv", "System", "Conda" and "Pipenv"), one that allows specifying a target platform.

0

Please sign in to leave a comment.