简体   繁体   中英

How to install module from another python installation

I am using winpython. Now for simple distribution, I want to use winpython zero. Is it possible to install the package from winpython folder to winpython zero folder?

One of the simplest ways is just copying the site-package directory in the original winpython to the new one (It is assumed that the versions of two winpythons are the same, saying python 3.5).

If you thinks the above way is silly, then you can use pip instead.

  1. Extract the installed packages from original winpython (pip used below should belong to the original winpython)

    pip freeze --all > python_packages.txt

  2. Install the extracted package list with pip. (pip used below should belong to the new winpython)

    pip install -r python_packages.txt

In theory, a possible way would be to:

pip install the_package_i_want --no-index --find-links=d:\\toto --trusted-host=None

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM