How to install external libraries with Portable Python?

后端 未结 4 1048
遥遥无期
遥遥无期 2020-12-06 21:38

I can\'t install Python on my machine due to administrator privileges, but I did download/open Portable Python successfully. I am on a Windows 7 64-bit machine. How would I

4条回答
  •  执念已碎
    2020-12-06 22:02

    Do the following:

    • Find an already compiled version of the desired package - Christoph Gohlke mantains an excelent collection here - download it and put it in a folder (say C:\temp).
    • In your Portable Python installation find the Scripts folder (usually under the Apps folder) and open a command prompt there.
    • From the Scripts folder type the command easy_install C:\temp\numpy-MKL-1.8.0.win32-py2.7.exe (change the exe file name for whatever is the name of your installer).

    Test if the installation succeeded:

    >>> import numpy
    >>> print numpy.__version__
    1.8.0
    

提交回复
热议问题