portable-python

Importing modules on portable python

↘锁芯ラ 提交于 2020-01-19 12:55:14
问题 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 portable python installation? Simply copying in folders into site-lib does not seem to work. 回答1: What does import sys; print sys.path say? It should be the list of directories and zipfiles where Python (portable or otherwise) looks for modules to import. Just copy your modules into one of those directories or

Importing modules on portable python

老子叫甜甜 提交于 2019-12-20 06:55:14
问题 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 portable python installation? Simply copying in folders into site-lib does not seem to work. 回答1: What does import sys; print sys.path say? It should be the list of directories and zipfiles where Python (portable or otherwise) looks for modules to import. Just copy your modules into one of those directories or

How can I install h5py with Portable Python v2.7?

隐身守侯 提交于 2019-12-13 04:49:37
问题 I am doing some Python 2.7 development work on multiple computers, on some of which I do not have rights to install software. Thus, I am using Portable Python. One of the packages I need to use is h5py ; however, since Portable Python installs without modifying the registry, the h5py installer doesn't see it as a valid Python installation. Also, simply extracting the h5py source to a custom F:\py\include folder and adding F:\py\include to the PYTHONPATH environment variable doesn't work, as

Adding libraries to portable python

僤鯓⒐⒋嵵緔 提交于 2019-12-12 18:05:57
问题 So I'm currently using portable python and I need to add the neurolab library. On command line I tried moving to the scripts directory and running easy_install.exe neurolab Then another command line window opens and it's found the neurolab project on google code and its listing files. Then it zips through a ton of lines and the window closes. However neurolab isn't added to my portable python... Any help would be much appreciated 回答1: This looks like pure Python library. If that is the case

Importing modules on portable python

北城以北 提交于 2019-12-02 08:20:48
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 portable python installation? Simply copying in folders into site-lib does not seem to work. What does import sys; print sys.path say? It should be the list of directories and zipfiles where Python (portable or otherwise) looks for modules to import. Just copy your modules into one of those directories or zipfiles, or sys.path.append('/whatever/dir') if you have your modules in /whatever/dir and want to keep them there