I tried pip install cassandra-driver
inside pycharm terminal, conda command prompt in admin mode, I upgraded/degraded versions of cassandra-driver, restarted pycharm , created new env ,still showing error.
这里是我的法典。
import cassandra
from cassandra.cluster import Cluster
我的错误:
C:Anaco3.8envsFlipScappython.exe
C:/Users/Rushikesh/Downloads/FlipkratScrappingProject/cassan2.py
Traceback (most recent call last):
File "C:/Users/Rushikesh/Downloads/FlipkratScrappingProject/cassan2.py", line 1, in <module>
import cassandra
File "C:UsersRushikeshDownloadsFlipkratScrappingProjectcassandra.py", line 3, in <module>
from cassandra.cluster import Cluster
ModuleNotFoundError: No module named cassandra.cluster ; cassandra is not a package