Importing modules on portable python

后端 未结 2 433
星月不相逢
星月不相逢 2021-01-26 12:44

I am running PortablePython_1.1_py2.6.1 on a USB stick. My code relies on some modules that are not preinstalled. Does anyone know whether it is possible to add new modules to a

2条回答
  •  粉色の甜心
    2021-01-26 13:33

    This closed question was actually asked for Portable Python 3.2. I have found a nice way to install modules with Windows :

    • download the zip archive of the distribute module

    • install it by typing

      MyPythonPath\App\python MyDownloadPath\setup.py install

    in a DOS commander

    • Now Easy Install is installed in folder MyPythonPath\App\Scripts. So type e.g.

      MyPythonPath\App\Scripts\easy_install-3.2 numpy

    to install the numpy module.

提交回复
热议问题