pip is not able to find this module, as well as me on pypi website. Could you please tell me the secret, how to install it?
I need the module to spawn new shell process via subprocess.call. I have seen a lot of examples, where people use import subprocess, but no one shows how it was installed.
Error, that i got (just in case i've lost my mind and does not understand what is going on):
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Alexander\Desktop\tests-runner>python run.py
Traceback (most recent call last):
File "run.py", line 165, in <module>
main()
File "run.py", line 27, in main
subprocess.call('py.test')
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
subprocessmodule is part of the standard library, it doesn't need (can't, actually) be installed. The error you get indicates that the executable that is supposed to be run as a subprocess can't be found, not thesubprocessmodule itself. Might be an issue with the working directory,$PATH, or the executable not being an.exe.py.test? Windows doesn't know how it should execute a file with a.testextension, so you'd need to at least specify an interpreter to execute it with. See this question for an example of this problem withgit.cmd.py.test.exename. Windows might fail to add.exesuffix because it thinks that the file already has it (.test). Here's how Windows search for the executable file