Modules between multiple versions of Python Linux

前端 未结 2 803
情书的邮戳
情书的邮戳 2020-12-21 02:58

I have Python2.6.5 and Python2.4.4 on my linux machine.

At the moment, all the modules I have (wx, ply, pyserial, twisted, to name a few) are installed for the 2.6 v

2条回答
  •  醉梦人生
    2020-12-21 03:05

    Don't attempt to share them; this has some chance of success with pure Python modules, but C modules will fail to work. Instead, install them using the appropriate interpreter executable, e.g. python2.4 setup.py install.

提交回复
热议问题