2016-08-03 58 views
1

Die Python 3.5 "embedded distribution" ist eine ZIP-Datei mitInstallieren von Paketen (pywin32) Python-Distribution eingebettet

pyexpat.pyd 
python.exe 
python3.dll 
python35.dll 
python35.zip 
pythonw.exe 
pyvenv.cfg 
select.pyd 
sqlite3.dll 
unicodedata.pyd 
vcruntime140.dll 
winsound.pyd 
_bz2.pyd 
_ctypes.pyd 
_decimal.pyd 
_elementtree.pyd 
_hashlib.pyd 
_lzma.pyd 
_msi.pyd 
_multiprocessing.pyd 
_overlapped.pyd 
_socket.pyd 
_sqlite3.pyd 
_ssl.pyd 

I pywin32

installieren müssen 0

Das Installationsprogramm benötigt die spezifische Python-Version, die auf dem System installiert werden soll. Zielpfade können nicht manuell bereitgestellt werden.

Dialog

Selection

Der Installer entpackt werden kann, aber ich bin mit dem Verpackungssystem nicht vertraut, so kann ich eine manuelle Installation nicht.

Ich fand https://bootstrap.pypa.io/get-pip.py, die Skripts/pip.exe erhalten und erstellt Lib/Site-Pakete.

Aber:

tools\python 
>pip install pywin32 
    Could not find a version that satisfies the requirement pywin32 (from versions:) 
No matching distribution found for pywin32 

Lösung bewegt zu beantworten.

Es wäre interessant zu wissen, wie das Paket manuell vom aktuellen Installer installiert wird (oder wie man den Installer dazu bringt, einen bestimmten Pfad zu verwenden).

+0

[get-pip .py] (https://bootstrap.pypa.io/get-pip.py) schlägt mit curr fehl Ent 3.6.1. Problem und Problemumgehung: https://github.com/pypa/get-pip/issues/7#issuecomment-274453772 – handle

Antwort

4

Es gibt eine (etwas ältere) Version von pywin32 als Python Rad bei https://pypi.python.org/pypi/pypiwin32

> pip.exe install pypiwin32 
Collecting pypiwin32 
    Downloading pypiwin32-219-cp35-none-win32.whl (7.9MB) 
    100% |################################| 7.9MB 114kB/s 
Installing collected packages: pypiwin32 
Successfully installed pypiwin32-219 

Test:

import win32clipboard 

win32clipboard.OpenClipboard() 
win32clipboard.EmptyClipboard() 
win32clipboard.SetClipboardText('Hello World!', win32clipboard.CF_TEXT) 
win32clipboard.CloseClipboard() 

> python test.py

Paste: Hello World!