在ubuntu18.04安裝pywin32模組 - Linux

Table of Contents

各位前輩好,由於最近會使用到tcp socket來傳送檔案,因此參考網路上的範例,用pyth
on寫了一個,但因為其中有用到win32這個模組,因此ubuntu無法執行,已經上網找了解
決辦法,但仍然無法解決,所以來這po文,希望前輩指導,謝謝前輩。

https://i.imgur.com/NsXfxTN.jpg
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Build
ing pywin32", pywin32_version)?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check
the logs for full command output.

--

All Comments

Emma avatarEmma2021-01-22
pywin32 是 linux windows 平台專用,linux 不可以用
再者 socket 傳送檔案應該不會用到 windows 專屬元件
Oliver avatarOliver2021-01-24
另外錯誤截圖內你是裝已經過時的 pypiwin32
Jack avatarJack2021-01-25
若是就這個上面錯誤訊息來看是使用 print "xxx" 方式
Selena avatarSelena2021-01-26
而不是使用 print("xxx")語法,傳統 python 2.x
世代的 print 是敘述,但是 3.x 改成 function 了
所以 2.x 語法在 py3 上面會無法執行運作
Una avatarUna2021-01-27
github 有新的修正版本可以裝這個版本
https://github.com/Googulator/pypiwin32
Isabella avatarIsabella2021-01-28
有小州老師就推。
Susan avatarSusan2021-01-30
模塊
Lydia avatarLydia2021-01-31
支語
Suhail Hany avatarSuhail Hany2021-02-01
要討論怎麼處理winreg模組相容問題,要先看你是拿這個模組幹
Ivy avatarIvy2021-02-02
麻,操作tcp socket為什麼需要這個模組呢?