web-dev-qa-db-fra.com

Comment installer win32com.client sur Python 3.4 ou Python 2.7

J'ai essayé d'installer win32com.client en utilisant la syntaxe ci-dessous, mais sans succès

>>> pip install pywin32

ErreurDeSyntaxe: Syntaxe invalide

>>> pypiwin32

Traceback (dernier appel le plus récent): Fichier "", ligne 1, dans pypiwin32 NameError: le nom 'pypiwin32' n'est pas défini

>>> pip install pypiwin32

ErreurDeSyntaxe: Syntaxe invalide

>>> pip install pypiwin32-220-cp36-none-win32.whl

ErreurDeSyntaxe: Syntaxe invalide

4
Jen

Ces erreurs suggèrent que vous vous trouvez dans un environnement Python. Par exemple, le Python REPL commence par trois chevrons, >>>. Tu ne veux pas ça. Exécutez ces commandes en dehors de Python dans l'invite de commande système via Windows ou Linux etc.

Ce qui suit a fonctionné pour moi sur Python 2.7:

> pip install pypiwin32

Essayez également ce qui suit post :

> python -m pip install pypiwin32
3
pylang

premier travail de commande pour moi en quelque sorte .........

C:\Users\AL MARUF> pip install pypiwin32 Collecte de pypiwin32 AVERTISSEMENT: nouvelle tentative (nouvelle tentative (total = 4, connexion = aucune, lecture = aucune, redirection = aucune, état = aucune)) après la connexion interrompue par 'NewConnectionError (': échec pour établir une nouvelle connexion: [Errno 11001] getaddrinfo a échoué ')':/simple/pypiwin32/Téléchargement https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac9209i32-223-23 none-any.whl Collecte pywin32> = 223 (à partir de pypiwin32) Téléchargement https://files.pythonhosted.org/packages/8a/37/917c4020e93e0e854d4cbff1cbdf14ec45a6d1cedf52f8cafdea5b22451c/py37p2-3237 whl (8.3MB) | █████████████████████████████████ | 8.3 Mo 142 ko/s Installation des packages collectés: pywin32, pypiwin32 Pypiwin32-223 pywin32-224 installé avec succès

0
Maruf