如果我已经安装了

2024-06-26 14:06:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经尝试安装selenium好几个小时了,现在我安装了,我得到了错误

Traceback (most recent call last):
  File "C:/Users/Family/Documents/open python.py", line 1, in <module>
    from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'

这是我的代码:

^{pr2}$

即使当我进入cmd并尝试安装它时,它仍然会说包已经安装在python34-Lib-sitepackages中:

env:C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Users\kaleem Hussain\AppData\Local\Smartbar\Application\;C:\Program Files (x86)\Skype\Phone\;C:\Python34;C:\Python34\Scripts


Tags: clientwindowsseleniumcomponentsfilesprogrammanagementusers