是pip install googletrans
你多打了一個s
現在出現的是這個
你有相關依賴的安裝包沒安裝
試試pip install pyqt5 pyqtwebengine pathlib ruamel-yaml
安裝出現這個
ERROR: Could not install packages due to an OSError: [WinError 5] 存取被拒。: 'C:\\Users\\sandr\\anaconda3\\Lib\\site-packages\\PyQt5\\QtCore.pyd'
Consider using the `--user` option or check the permissions.
pip install PyQt5==5.12.3 pyqtwebengine==5.12 pyqt5-tools pathlib ruamel-yaml --user
也安裝這個結果跑出這個QAQ
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in _main
status = self.run(options, args)
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_internal\cli\req_command.py", line 204, in wrapper
return func(self, options, args)
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 318, in run
requirement_set = resolver.resolve(
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 127, in resolve
result = self._result = resolver.resolve(
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 473, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\sandr\anaconda3\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 384, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
謝謝您的幫忙~
Google API 已改變,但googletrans套件沒有隨之修改,需安裝舊版。
pip install googletrans==3.1.0a0
[WinError 5] 存取被拒 --> 先結束所有Python程式及 Jupyter Notebbok,再安裝套件。