Selenium funktioniert nicht

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
red | Ali
User
Beiträge: 34
Registriert: Samstag 31. Oktober 2020, 16:39

Guten Abend,
ich arbeite auf einem Kali Linux mit Python 3.8.
Ich habe Selenium bereits installiert. Aber in PyCharm kann ich es nicht importieren. Siehe hier:

Code: Alles auswählen

Traceback (most recent call last):
  File "/home/red/PycharmProjects/loginGUIsmpl/main.py", line 1, in <module>
    from selenium import *
ModuleNotFoundError: No module named 'selenium'

Check:

Code: Alles auswählen

┌──(root㉿kali)-[~]
└─$ pip list            
Package                      Version
---------------------------- --------------
acora                        2.2
adblockparser                0.7
AdvancedHTTPServer           2.2.0
aiocmd                       0.1.2
aioconsole                   0.3.1
aiodns                       2.0.0
aiohttp                      3.6.2
aiomultiprocess              0.8.0
aioredis                     1.3.1
aiosqlite                    0.15.0
aiowinreg                    0.0.3
ajpy                         0.0.4
alembic                      1.4.3.dev0
aniso8601                    8.0.0
apispec                      3.3.1
apispec-webframeworks        0.5.2
appdirs                      1.4.4
APScheduler                  0.0.0
arrow                        0.17.0
artifacts                    20190320
asciitree                    0.3.3
asgiref                      3.3.0
asn1crypto                   1.4.0
async-timeout                3.0.1
asysocks                     0.0.2
atomicwrites                 1.4.0
attrs                        20.3.0
autobahn                     17.10.1
Automat                      20.2.0
Babel                        2.8.0
backcall                     0.2.0
basemap                      1.2.1
bcrypt                       3.1.7
beautifulsoup4               4.9.3
binwalk                      2.2.0
blinker                      1.4
boltons                      19.1.0
bottle                       0.12.15
Bottleneck                   1.2.1
Brotli                       1.0.9
cairocffi                    0.9.0
capstone                     4.0.2
catfish                      1.4.13
cbor                         1.0.0
certifi                      2020.6.20
cffi                         1.14.4
chardet                      3.0.4
CherryPy                     8.9.1
click                        7.1.2
click-plugins                1.1.1
colorama                     0.4.4
configobj                    5.0.6
constantly                   15.1.0
crackmapexec                 5.1.4.dev0
cryptography                 3.2.1
cycler                       0.10.0
Cython                       0.29.21
dbus-python                  1.2.16
debtags                      2.1
decorator                    4.4.2
defusedxml                   0.6.0
deprecation                  2.0.7
dicttoxml                    1.7.4
distro                       1.5.0
Django                       2.2.17
dnslib                       0.9.14
dnspython                    2.0.0
ecdsa                        0.16.0
email-validator              1.1.1
et-xmlfile                   1.0.1
ExifRead                     2.3.2
expiringdict                 1.1.4
faraday-client               1.0.0
faraday-plugins              1.2
faradaysec                   3.12
feedparser                   5.2.1
fierce                       1.4.0
filedepot                    0.5.2
filteralchemy                0.1.0
flasgger                     0.9.5
Flask                        1.1.2
Flask-BabelEx                0.9.4
Flask-Classful               0.14.1
Flask-KVSession-fork         0.6.3
Flask-Login                  0.5.0
Flask-Mail                   0.9.1
Flask-Principal              0.4.0
Flask-RESTful                0.3.8
Flask-Security-Too           3.4.2
Flask-SQLAlchemy             2.4.0
Flask-WTF                    0.14.3
future                       0.18.2
GDAL                         3.2.0
geoip2                       2.9.0
geojson                      2.5.0
gevent                       20.9.0
gitdb                        4.0.5
GitPython                    3.1.11
gpg                          1.14.0-unknown
graphene                     2.1.7
graphene-sqlalchemy          2.1.2
graphql-core                 2.2.1
graphql-relay                2.0.0
greenlet                     0.4.17
h11                          0.11.0
h2                           4.0.0
hashID                       3.1.4
hiredis                      1.0.1
hpack                        4.0.0
html2text                    2020.1.16
html5lib                     1.1
humanize                     0.0.0
hupper                       1.10.2
hyperframe                   6.0.0
hyperlink                    19.0.0
icalendar                    4.0.3
idna                         2.10
impacket                     0.9.22
importlib-metadata           1.6.0
incremental                  17.5.0
intervaltree                 3.0.2
invoke                       1.4.1
ipwhois                      0.15.1
IPy                          1.0
ipython                      7.19.0
ipython-genutils             0.2.0
isodate                      0.6.0
itsdangerous                 1.1.0
jdcal                        1.0
jedi                         0.17.0
Jinja2                       2.11.2
jsonschema                   3.2.0
jupyter-core                 4.7.0
kaitaistruct                 0.8
kazam                        1.4.5
KismetCaptureFreaklabsZigbee 2018.7.0
KismetCaptureRtl433          2020.10.1
KismetCaptureRtladsb         2020.10.1
KismetCaptureRtlamr          2020.10.1
kiwisolver                   1.3.1
ldap3                        2.8.1
ldapdomaindump               0.9.3
lightdm-gtk-greeter-settings 1.2.2
lsassy                       2.1.2
lxml                         4.6.2
lz4                          3.1.1+dfsg
Mako                         1.1.3
Markdown                     3.3.3
MarkupSafe                   1.1.1
marshmallow                  3.7.1
marshmallow-sqlalchemy       0.19.0
matplotlib                   3.3.2
maxminddb                    2.0.3
mechanize                    0.4.5
minidump                     0.0.12
minikerberos                 0.2.0
mistune                      0.8.4
mitmproxy                    5.3.0
more-itertools               4.2.0
msgpack                      1.0.0
msldap                       0.2.10
multidict                    5.0.0
mysqlclient                  1.4.4
nassl                        3.1.0
nbformat                     5.0.8
neo4j                        1.7.0.dev0
neobolt                      1.7.17
neotime                      1.7.4
netaddr                      0.7.19
networkx                     2.5
nplusone                     1.0.0
ntlm-auth                    1.4.0
numexpr                      2.7.1
numpy                        1.19.4
odfpy                        1.4.1
olefile                      0.46
openpyxl                     3.0.3
packaging                    20.4
pandas                       1.1.4
paramiko                     2.7.2
parsedatetime                2.6
parso                        0.7.0
passlib                      1.7.2
Paste                        3.5.0
PasteDeploy                  2.1.1
PasteScript                  2.0.2
patator                      0.9
pcapy                        0.11.4
pefile                       2019.4.18
pexpect                      4.6.0
pgspecial                    1.11.10
phonenumbers                 8.12.1
pickleshare                  0.7.5
Pillow                       8.0.1
pip                          20.1.1
plaster                      1.0
plaster-pastedeploy          0.5
plotly                       4.12.0
pluggy                       0.13.0
pluginbase                   1.0.0
ply                          3.11
prettytable                  0.7.2
promise                      2.2
prompt-toolkit               3.0.8
protobuf                     3.12.3
psutil                       5.7.3
psycopg2                     2.8.5
publicsuffix2                2.20191221
py                           1.9.0
py-ubjson                    0.14.0
pyaff4                       0.26.post6
pyasn1                       0.4.8
pyasn1-modules               0.2.1
pycairo                      1.16.2
pycares                      3.1.1
pycparser                    2.20
pycrypto                     2.6.1
pycryptodomex                3.9.7
pycurl                       7.43.0.6
pydot                        1.4.1
pyee                         7.0.2
pyelftools                   0.27
pyExploitDb                  0.2.0
pyfiglet                     0.8.post0
Pygments                     2.7.1
PyGObject                    3.38.0
pygraphviz                   1.6
PyHamcrest                   1.9.0
pyinotify                    0.9.6
pylnk3                       0.2.1
pymssql                      2.1.4
PyNaCl                       1.4.0
pyOpenSSL                    19.1.0
pyotp                        2.3.0
pyparsing                    2.4.7
PyPDF2                       1.26.0
pyperclip                    1.8.0
pypng                        0.0.20
pyppeteer                    0.2.2
pyproj                       3.0.0
pypsrp                       0.4.0
pypykatz                     0.3.7
PyQRCode                     1.2.1
PyQt5                        5.15.2
PyQt5-sip                    12.8.1
pyqtgraph                    0.11.0
pyramid                      1.10.4
pyrsistent                   0.15.5
pyserial                     3.5b0
pyShodan                     0.2.3
pyshp                        2.1.2
pysmi                        0.3.2
pysnmp                       4.4.12
PySocks                      1.7.1
pytest                       4.6.11
python-apt                   2.1.7
python-dateutil              2.8.1
python-debian                0.1.38
python-docx                  0.8.10
python-editor                1.0.3
python-magic                 0.4.16
python-pam                   1.8.4
python-pptx                  0.6.18
python-snappy                0.5.3
PyTrie                       0.2
pytsk3                       20200117
pytz                         2020.4
pywerview                    0.2.0
pyxdg                        0.26
PyYAML                       5.3.1
qrcode                       6.1
Quamash                      0.6.1
rdflib                       4.2.2
redis                        3.3.11
rekall-core                  1.7.2rc1
rekall-lib                   1.7.1
repoze.lru                   0.7
requests                     2.24.0
requests-file                1.5.1
requests-ntlm                1.1.0
requests-toolbelt            0.8.0
retrying                     1.3.3
Routes                       2.4.1
rq                           1.5.2
ruamel.yaml                  0.16.12
ruamel.yaml.clib             0.2.2
rule-engine                  1.1.0
Rx                           3.1.1
scapy                        2.4.4
scipy                        1.5.4
secure                       0.2.1
selenium                     4.0.0a1
service-identity             18.1.0
setproctitle                 1.2.1
setuptools                   50.3.0
shodan                       1.24.0
simplejson                   3.17.0
simplekv                     0.13.0
six                          1.15.0
smmap                        3.0.4
smoke-zephyr                 2.0.0
sortedcontainers             2.1.0
soupsieve                    2.1
SPARQLWrapper                1.8.5
speaklater                   1.4
SQLAlchemy                   1.3.20
sqlalchemy-schemadisplay     1.3
sqlparse                     0.3.1
sslyze                       3.1.0
stem                         1.8.0
syslog-rfc5424-formatter     1.2.2
tables                       3.6.1
tabulate                     0.8.7
Tempita                      0.5.2
termcolor                    1.1.0
terminaltables               3.1.0
texttable                    1.6.3
theHarvester                 3.2.2
tld                          0.11.11
tls-parser                   1.2.2
tornado                      6.1
tqdm                         4.51.0
traitlets                    5.0.5
translationstring            1.4
Twisted                      20.3.0
txaio                        20.4.1
typing-extensions            3.7.4.3
tzlocal                      2.1
u-msgpack-python             2.3.0
unicodecsv                   0.14.1
Unidecode                    1.1.1
urllib3                      1.25.11
urwid                        2.1.2
uvloop                       0.14.0
venusian                     3.0.0
wafw00f                      2.1.0
wapiti3                      3.0.3
wcwidth                      0.1.9
webargs                      6.1.0
webencodings                 0.5.1
WebOb                        1.8.6
websocket-client             0.57.0
websockets                   8.1
Werkzeug                     1.0.1
wfuzz                        3.1.0
wheel                        0.34.2
whois                        0.8
wifite                       2.5.7
winacl                       0.0.2
wsaccel                      0.6.2
wsproto                      0.15.0
WTForms                      2.2.1
xcffib                       0.8.1
xlrd                         1.1.0
XlsxWriter                   1.1.2
xlwt                         1.3.0
xmltodict                    0.12.0
yara-python                  4.0.2
yarl                         1.4.2
yaswfp                       0.9.3
zipp                         1.0.0
zope.deprecation             4.4.0
zope.event                   4.4
zope.interface               5.1.2
Benutzeravatar
Dennis89
User
Beiträge: 1555
Registriert: Freitag 11. Dezember 2020, 15:13

Ja, weil PyCharm für dein Projekt eine Entwicklungsumgebung kreiert hat. Du musst dein Modul dort installieren:
File > Settings > Project:XXX >Python Interpreter
Dann hast du eine Liste mit den installierten Modulen. Darunter befindet sich links ein '+' darauf klicken, dein Modul suchen und 'Install Package' anklicken, fertig.

Grüße
Dennis
"When I got the music, I got a place to go" [Rancid, 1993]
Benutzeravatar
hyle
User
Beiträge: 96
Registriert: Sonntag 22. Dezember 2019, 23:19
Wohnort: Leipzig

Ähm @red | Ali Deine Fragen ziehen sich hier quer durch die Möglichkeiten, die man mit Python hat. Wie wäre es mal die Doku zu lesen um nicht zu sagen: RTFM!!! :roll:
Alles was wir sind ist Sand im Wind Hoschi.
Benutzeravatar
sparrow
User
Beiträge: 4538
Registriert: Freitag 17. April 2009, 10:28

@red | Ali: Was denkst du denn, was du mit "pip list" checkst? So werden die installierbaren - nicht die installierten - Module angezeigt.
red | Ali
User
Beiträge: 34
Registriert: Samstag 31. Oktober 2020, 16:39

sparrow hat geschrieben: Dienstag 22. Dezember 2020, 23:49 @red | Ali: Was denkst du denn, was du mit "pip list" checkst? So werden die installierbaren - nicht die installierten - Module angezeigt.
Ich meine das ja auch
Also das es installiert ist
red | Ali
User
Beiträge: 34
Registriert: Samstag 31. Oktober 2020, 16:39

hyle hat geschrieben: Dienstag 22. Dezember 2020, 23:26 Ähm @red | Ali Deine Fragen ziehen sich hier quer durch die Möglichkeiten, die man mit Python hat. Wie wäre es mal die Doku zu lesen um nicht zu sagen: RTFM!!! :roll:
Welche Doku?
Was würdest du mir empfehlen?
Benutzeravatar
hyle
User
Beiträge: 96
Registriert: Sonntag 22. Dezember 2019, 23:19
Wohnort: Leipzig

Hier findest Du so ziemlich alles was Du brauchst: https://www.python.org/doc/
Alles was wir sind ist Sand im Wind Hoschi.
Antworten