Force python to use an older version of module (than what I have installed now)
问题 My employer has a dedicated module 1 we use for internal unit / system test; however, the author of this module no longer works here and I have been asked to test some devices with it. The problem is that pyfoo requires an ancient version of twisted (v8.2.0) and it imports twisted in 33 different files. I tried running pyfoo 's unit tests under v11.0.0 and I don't even see TCP SYN packets 2 . Unfortunately, I have already got twisted v11.0.0 installed on my lab linux server and I have my own